Skip to content

Commit

Permalink
fix: ensure that the node env is not bootstrapped before running insp…
Browse files Browse the repository at this point in the history
…ector
  • Loading branch information
MarshallOfSound committed Jul 24, 2019
1 parent 1d06f67 commit cf2103d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shell/app/node_main.cc
Expand Up @@ -70,12 +70,14 @@ int NodeMain(int argc, char* argv[]) {

node::Environment* env = node::CreateEnvironment(
node::CreateIsolateData(gin_env.isolate(), loop, gin_env.platform()),
gin_env.context(), argc, argv, exec_argc, exec_argv);
gin_env.context(), argc, argv, exec_argc, exec_argv, false);

// Enable support for v8 inspector.
NodeDebugger node_debugger(env);
node_debugger.Start();

node::BootstrapEnvironment(env);

mate::Dictionary process(gin_env.isolate(), env->process_object());
#if defined(OS_WIN)
process.SetMethod("log", &ElectronBindings::Log);
Expand Down

0 comments on commit cf2103d

Please sign in to comment.