summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2018-03-25 20:13:54 -0700
committerTimothy Gu <timothygu99@gmail.com>2018-04-18 07:50:17 -0700
commitbe92eab92a185fdd954da85bc41ab85af0f16690 (patch)
tree3653358ecb6afcc0b8420248c7d32c8458a17038 /src/node_internals.h
parentd864f63611a86c33da7864e3af5fff3be8332d07 (diff)
downloadandroid-node-v8-be92eab92a185fdd954da85bc41ab85af0f16690.tar.gz
android-node-v8-be92eab92a185fdd954da85bc41ab85af0f16690.tar.bz2
android-node-v8-be92eab92a185fdd954da85bc41ab85af0f16690.zip
repl: hide top-level await feature behind a flag
PR-URL: https://github.com/nodejs/node/pull/19604 Refs: https://github.com/nodejs/node/pull/17807 Refs: https://github.com/nodejs/node/pull/15566#issuecomment-353428430 Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 8cc1aa1a8f..492a36296f 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -181,6 +181,11 @@ extern bool config_experimental_modules;
// that is used by lib/vm.js
extern bool config_experimental_vm_modules;
+// Set in node.cc by ParseArgs when --experimental-repl-await is used.
+// Used in node_config.cc to set a constant on process.binding('config')
+// that is used by lib/repl.js.
+extern bool config_experimental_repl_await;
+
// Set in node.cc by ParseArgs when --loader is used.
// Used in node_config.cc to set a constant on process.binding('config')
// that is used by lib/internal/bootstrap/node.js