From c39467cb4782e559c106d3d527bb0bd87439bbaa Mon Sep 17 00:00:00 2001 From: dfabulich Date: Tue, 19 May 2020 16:01:30 -0700 Subject: [PATCH] doc: mention --experimental-top-level-await flag PR-URL: https://github.com/nodejs/node/pull/33473 Reviewed-By: Gus Caplan Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/cli.md | 10 ++++++++++ doc/changelogs/CHANGELOG_V14.md | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 2015a45608f9b4..1a6a8d361918f2 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -226,6 +226,16 @@ the ability to import a directory that has an index file. Please see [customizing ESM specifier resolution][] for example usage. +### `--experimental-top-level-await` + + +Enable experimental top-level `await` keyword support, available only in ES +module scripts. + +(See also `--experimental-repl-await`.) + ### `--experimental-vm-modules`