File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ void ElectronRendererClient::DidCreateScriptContext(
84
84
node::tracing::TraceEventHelper::SetAgent (node::CreateAgent ());
85
85
86
86
// Setup node environment for each window.
87
- bool initialized = node::InitializeContext (renderer_context);
88
- CHECK (initialized);
87
+ v8::Maybe< bool > initialized = node::InitializeContext (renderer_context);
88
+ CHECK (! initialized. IsNothing () );
89
89
90
90
node::Environment* env =
91
91
node_bindings_->CreateEnvironment (renderer_context, nullptr );
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ void WebWorkerObserver::WorkerScriptReadyForEvaluation(
63
63
node::tracing::TraceEventHelper::SetAgent (node::CreateAgent ());
64
64
65
65
// Setup node environment for each window.
66
- bool initialized = node::InitializeContext (worker_context);
67
- CHECK (initialized);
66
+ v8::Maybe< bool > initialized = node::InitializeContext (worker_context);
67
+ CHECK (! initialized. IsNothing () );
68
68
node::Environment* env =
69
69
node_bindings_->CreateEnvironment (worker_context, nullptr );
70
70
You can’t perform that action at this time.
0 commit comments