mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: gin_helper::MicrotasksScope instantiation (#43185)
This commit is contained in:
@@ -237,8 +237,9 @@ void ElectronBindings::DidReceiveMemoryDump(
|
||||
v8::HandleScope handle_scope(isolate);
|
||||
v8::Local<v8::Context> local_context =
|
||||
v8::Local<v8::Context>::New(isolate, context);
|
||||
gin_helper::MicrotasksScope microtasks_scope(
|
||||
isolate, local_context->GetMicrotaskQueue(), true);
|
||||
gin_helper::MicrotasksScope microtasks_scope{
|
||||
isolate, local_context->GetMicrotaskQueue(), true,
|
||||
v8::MicrotasksScope::kRunMicrotasks};
|
||||
v8::Context::Scope context_scope(local_context);
|
||||
|
||||
if (!success) {
|
||||
|
||||
Reference in New Issue
Block a user