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:
trop[bot] 2025-02-07 10:03:31 +01:00 committed by GitHub
parent 984b8f9b1b
commit 9d9d1afb2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 23 additions and 37 deletions

View file

@ -47,8 +47,8 @@ void AutoUpdater::OnError(const std::string& message) {
};
gin_helper::MicrotasksScope microtasks_scope{
isolate, wrapper->GetCreationContextChecked()->GetMicrotaskQueue(),
true, v8::MicrotasksScope::kRunMicrotasks};
wrapper->GetCreationContextChecked(), true,
v8::MicrotasksScope::kRunMicrotasks};
node::MakeCallback(isolate, wrapper, "emit", args.size(), args.data(),
{0, 0});