refactor: only pass v8::Context
to gin_helper::MicrotasksScope
constructor (#45484)
refactor: forward v8::Context to v8::MicrotasksScope constructor
This commit is contained in:
parent
326957009a
commit
517935cd55
14 changed files with 23 additions and 37 deletions
|
@ -25,7 +25,7 @@ v8::Local<v8::Value> CallMethodWithArgs(
|
|||
|
||||
// Perform microtask checkpoint after running JavaScript.
|
||||
gin_helper::MicrotasksScope microtasks_scope{
|
||||
isolate, obj->GetCreationContextChecked()->GetMicrotaskQueue(), true,
|
||||
obj->GetCreationContextChecked(), true,
|
||||
v8::MicrotasksScope::kRunMicrotasks};
|
||||
|
||||
// node::MakeCallback will also run pending tasks in Node.js.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue