From b67214fe313383a6f729772d929c405041085c93 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 8c462bbd6e2c13..a66d8192d3c5eb 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -277,12 +277,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`