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 @@ -85,8 +85,8 @@ void ElectronRendererClient::DidCreateScriptContext(
85
85
node::tracing::TraceEventHelper::SetAgent (node::CreateAgent ());
86
86
87
87
// Setup node environment for each window.
88
- bool initialized = node::InitializeContext (renderer_context);
89
- CHECK (initialized);
88
+ v8::Maybe< bool > initialized = node::InitializeContext (renderer_context);
89
+ CHECK (! initialized. IsNothing () );
90
90
91
91
node::Environment* env =
92
92
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