refactor: only pass v8::Context
to gin_helper::MicrotasksScope
constructor (#45503)
refactor: forward v8::Context to v8::MicrotasksScope constructor Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
parent
984b8f9b1b
commit
9d9d1afb2e
14 changed files with 23 additions and 37 deletions
|
@ -49,8 +49,7 @@ void WebWorkerObserver::WorkerScriptReadyForEvaluation(
|
|||
v8::Context::Scope context_scope(worker_context);
|
||||
auto* isolate = worker_context->GetIsolate();
|
||||
v8::MicrotasksScope microtasks_scope(
|
||||
isolate, worker_context->GetMicrotaskQueue(),
|
||||
v8::MicrotasksScope::kDoNotRunMicrotasks);
|
||||
worker_context, v8::MicrotasksScope::kDoNotRunMicrotasks);
|
||||
|
||||
// Start the embed thread.
|
||||
node_bindings_->PrepareEmbedThread();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue