fix: bootstrap the node environment after we setup the InspectorAgent (#19317)
This commit is contained in:
parent
2467350180
commit
6fc648cd25
7 changed files with 117 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue