File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,16 @@ the ability to import a directory that has an index file.
226
226
227
227
Please see [ customizing ESM specifier resolution] [ ] for example usage.
228
228
229
+ ### ` --experimental-top-level-await `
230
+ <!-- YAML
231
+ added: v14.3.0
232
+ -->
233
+
234
+ Enable experimental top-level ` await ` keyword support, available only in ES
235
+ module scripts.
236
+
237
+ (See also ` --experimental-repl-await ` .)
238
+
229
239
### ` --experimental-vm-modules `
230
240
<!-- YAML
231
241
added: v9.6.0
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ including the autocompleted part. Pressing `<escape>` cancels that behavior.
51
51
52
52
#### Support for Top-Level Await
53
53
54
- It's now possible to use the await keyword outside of async functions.
54
+ It's now possible to use the await keyword outside of async functions, with the
55
+ ` --experimental-top-level-await ` flag.
55
56
56
57
#### Other Notable Changes
57
58
You can’t perform that action at this time.
0 commit comments