You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4f844f4
Browse filesBrowse the repository at this point in the historyBrowse files
description: The `--experimental-repl-await` flag was removed. Top-level
217
+
`await` is always enabled and can no longer be disabled.
218
+
-->
219
+
245
220
Support for the `await` keyword is enabled at the top level.
246
221
247
222
```console
@@ -257,25 +232,6 @@ undefined
257
232
undefined
258
233
```
259
234
260
-
One known limitation of using the `await` keyword in the REPL is that
261
-
it will invalidate the lexical scoping of the `const` keywords.
262
-
263
-
For example:
264
-
265
-
```console
266
-
> const m = await Promise.resolve(123)
267
-
undefined
268
-
> m
269
-
123
270
-
> m = await Promise.resolve(234)
271
-
234
272
-
// redeclaring the constant does error
273
-
> const m = await Promise.resolve(345)
274
-
Uncaught SyntaxError: Identifier 'm' has already been declared
275
-
```
276
-
277
-
[`--no-experimental-repl-await`][] shall disable top-level await in REPL.
278
-
279
235
### Reverse-i-search
280
236
281
237
<!-- YAML
@@ -1174,15 +1130,10 @@ Original code from <https://gist.github.com/TooTallNate/2053342>.
Copy file name to clipboardExpand all lines: doc/node-config-schema.json
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -244,10 +244,6 @@
244
244
"type": "boolean",
245
245
"description": "Print pending top-level await. If --require-module is true, evaluate asynchronous graphs loaded by `require()` but do not run the microtasks, in order to find and print top-level await in the graph"
246
246
},
247
-
"experimental-repl-await": {
248
-
"type": "boolean",
249
-
"description": "experimental await keyword support in REPL"
250
-
},
251
247
"experimental-require-module": {
252
248
"type": "boolean",
253
249
"description": "Legacy alias for --require-module"
0 commit comments