fix: gin_helper::MicrotasksScope instantiation (#43185)
This commit is contained in:
parent
e64302cc91
commit
6877671390
12 changed files with 55 additions and 44 deletions
|
@ -46,9 +46,9 @@ void AutoUpdater::OnError(const std::string& message) {
|
|||
gin::StringToV8(isolate, message),
|
||||
};
|
||||
|
||||
gin_helper::MicrotasksScope microtasks_scope(
|
||||
gin_helper::MicrotasksScope microtasks_scope{
|
||||
isolate, wrapper->GetCreationContextChecked()->GetMicrotaskQueue(),
|
||||
true);
|
||||
true, v8::MicrotasksScope::kRunMicrotasks};
|
||||
|
||||
node::MakeCallback(isolate, wrapper, "emit", args.size(), args.data(),
|
||||
{0, 0});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue