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.
1 parent a0c566f commit 620ee42Copy full SHA for 620ee42
doc/api/repl.md
@@ -233,6 +233,23 @@ undefined
233
undefined
234
```
235
236
+One known limitation of using the `await` keyword in the REPL is that
237
+it will invalidate the lexical scoping of the `const` and `let`
238
+keywords.
239
+
240
+For example:
241
242
+```console
243
+> const m = await Promise.resolve(123)
244
+undefined
245
+> m
246
+123
247
+> const m = await Promise.resolve(234)
248
249
250
+234
251
+```
252
253
### Reverse-i-search
254
<!-- YAML
255
added:
0 commit comments