fix: bootstrap the node environment after we setup the InspectorAgent (#19317)

This commit is contained in:
Samuel Attard
2019-07-18 16:54:23 -07:00
committed by GitHub
parent 2467350180
commit 6fc648cd25
7 changed files with 117 additions and 9 deletions

View File

@@ -41,9 +41,9 @@ class NodeBindings {
void Initialize();
// Create the environment and load node.js.
node::Environment* CreateEnvironment(
v8::Handle<v8::Context> context,
node::MultiIsolatePlatform* platform = nullptr);
node::Environment* CreateEnvironment(v8::Handle<v8::Context> context,
node::MultiIsolatePlatform* platform,
bool bootstrap_env);
// Load node.js in the environment.
void LoadEnvironment(node::Environment* env);