aboutsummaryrefslogtreecommitdiff
path: root/src/node.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2017-11-24 00:13:44 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2017-11-24 00:13:44 +0100
commit05948d8e4e3fefb757ea8b8aa5160cacd07e0cf4 (patch)
tree85a924240378ed30b4e6e9db15fce44a76db4801 /src/node.cc
parent0028241fb4c19d04066b006bca4f3e0b3b403d90 (diff)
downloadandroid-node-v8-05948d8e4e3fefb757ea8b8aa5160cacd07e0cf4.tar.gz
android-node-v8-05948d8e4e3fefb757ea8b8aa5160cacd07e0cf4.tar.bz2
android-node-v8-05948d8e4e3fefb757ea8b8aa5160cacd07e0cf4.zip
lib: remove use of Debug.MakeMirror()
This paves the way for removing `vm.runInDebugContext()`. Inspection of Map and Set iterators is now done through V8 instrinsics. Fixes: https://github.com/nodejs/node/issues/11875 PR-URL: https://github.com/nodejs/node/pull/13295 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc
index 111f3b80f2..57c1a4cc8a 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -4288,6 +4288,12 @@ void Init(int* argc,
const char no_typed_array_heap[] = "--typed_array_max_size_in_heap=0";
V8::SetFlagsFromString(no_typed_array_heap, sizeof(no_typed_array_heap) - 1);
+ // Needed for access to V8 intrinsics. Disabled again during bootstrapping,
+ // see lib/internal/bootstrap_node.js.
+ const char allow_natives_syntax[] = "--allow_natives_syntax";
+ V8::SetFlagsFromString(allow_natives_syntax,
+ sizeof(allow_natives_syntax) - 1);
+
// We should set node_is_initialized here instead of in node::Start,
// otherwise embedders using node::Init to initialize everything will not be
// able to set it and native modules will not load for them.