chore: bump node to v12.10.0 (master) (#20129)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
Electron Bot 2019-10-14 18:46:10 -04:00 committed by Shelley Vohr
parent 8dad0c7aaa
commit 6c6bff81ac
9 changed files with 13 additions and 89 deletions

View file

@ -121,11 +121,10 @@ void AtomRendererClient::DidCreateScriptContext(
node::tracing::TraceEventHelper::SetAgent(node::CreateAgent());
// Setup node environment for each window.
v8::Local<v8::Context> context =
node::MaybeInitializeContext(renderer_context);
DCHECK(!context.IsEmpty());
DCHECK(node::InitializeContext(renderer_context));
node::Environment* env =
node_bindings_->CreateEnvironment(context, nullptr, true);
node_bindings_->CreateEnvironment(renderer_context, nullptr, true);
// If we have disabled the site instance overrides we should prevent loading
// any non-context aware native module
if (command_line->HasSwitch(switches::kDisableElectronSiteInstanceOverrides))

View file

@ -48,10 +48,9 @@ void WebWorkerObserver::ContextCreated(v8::Local<v8::Context> worker_context) {
node_bindings_->PrepareMessageLoop();
// Setup node environment for each window.
v8::Local<v8::Context> context = node::MaybeInitializeContext(worker_context);
DCHECK(!context.IsEmpty());
DCHECK(node::InitializeContext(worker_context));
node::Environment* env =
node_bindings_->CreateEnvironment(context, nullptr, true);
node_bindings_->CreateEnvironment(worker_context, nullptr, true);
// Add Electron extended APIs.
electron_bindings_->BindTo(env->isolate(), env->process_object());