fix: do not DCHECK non-const methods (#20833)
This commit is contained in:
Родитель
79d3901859
Коммит
5d00494f8d
|
@ -121,7 +121,9 @@ void AtomRendererClient::DidCreateScriptContext(
|
|||
node::tracing::TraceEventHelper::SetAgent(node::CreateAgent());
|
||||
|
||||
// Setup node environment for each window.
|
||||
DCHECK(node::InitializeContext(renderer_context));
|
||||
bool initialized = node::InitializeContext(renderer_context);
|
||||
CHECK(initialized);
|
||||
|
||||
node::Environment* env =
|
||||
node_bindings_->CreateEnvironment(renderer_context, nullptr, true);
|
||||
|
||||
|
|
|
@ -48,7 +48,8 @@ void WebWorkerObserver::ContextCreated(v8::Local<v8::Context> worker_context) {
|
|||
node_bindings_->PrepareMessageLoop();
|
||||
|
||||
// Setup node environment for each window.
|
||||
DCHECK(node::InitializeContext(worker_context));
|
||||
bool initialized = node::InitializeContext(worker_context);
|
||||
CHECK(initialized);
|
||||
node::Environment* env =
|
||||
node_bindings_->CreateEnvironment(worker_context, nullptr, true);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче