We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
await
1 parent 0f4446c commit 2de633cCopy full SHA for 2de633c
doc/api/repl.md
@@ -234,6 +234,20 @@ undefined
234
undefined
235
```
236
237
+One known limitation of using the `await` keyword in the REPL is that
238
+it will invalidate the lexical scoping of the `const` keywords.
239
+
240
+For example:
241
242
+```console
243
+> const m = await Promise.resolve(123)
244
+undefined
245
+> m
246
+123
247
+> m = await Promise.resolve(234)
248
+234
249
+```
250
251
[`--no-experimental-repl-await`][] shall disable top-level await in REPL.
252
253
### Reverse-i-search
0 commit comments