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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 117 additions and 9 deletions

View file

@ -107,7 +107,8 @@ void AtomRendererClient::DidCreateScriptContext(
v8::Local<v8::Context> context =
node::MaybeInitializeContext(renderer_context);
DCHECK(!context.IsEmpty());
node::Environment* env = node_bindings_->CreateEnvironment(context);
node::Environment* env =
node_bindings_->CreateEnvironment(context, nullptr, true);
auto* command_line = base::CommandLine::ForCurrentProcess();
// If we have disabled the site instance overrides we should prevent loading
// any non-context aware native module