From 14b26e07bd90c30bd6a7df0f3cefd35698e24c8d Mon Sep 17 00:00:00 2001 From: "hemanth.hm" Date: Thu, 8 Jul 2021 18:33:54 +0000 Subject: [PATCH] repl: enable --experimental-repl-await /w opt-out Unflags top-level await for the REPL by enabling --experimental-repl-await by default. Opt-out is supported via --no-experimental-repl-await. PR-URL: https://github.com/nodejs/node/pull/34733 Reviewed-By: Guy Bedford --- doc/api/cli.md | 11 +++++------ doc/api/repl.md | 7 ++++--- doc/node.1 | 6 ++---- lib/repl.js | 3 ++- src/node_options.cc | 3 ++- src/node_options.h | 2 +- test/parallel/test-repl-import-referrer.js | 2 +- test/parallel/test-repl-top-level-await.js | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 1a2d444898d9cc..6c240ffcca47da 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -279,12 +279,11 @@ added: v11.8.0 Use the specified file as a security policy. -### `--experimental-repl-await` +### `--no-experimental-repl-await` - -Enable experimental top-level `await` keyword support in REPL. +added: REPLACEME + --> + Use this flag to disable top-level await in REPL. ### `--experimental-specifier-resolution=mode`