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
|
@ -288,8 +288,7 @@ void ErrorMessageListener(v8::Local<v8::Message> message,
|
|||
node::Environment* env = node::Environment::GetCurrent(isolate);
|
||||
if (env) {
|
||||
gin_helper::MicrotasksScope microtasks_scope(
|
||||
isolate, env->context()->GetMicrotaskQueue(), false,
|
||||
v8::MicrotasksScope::kDoNotRunMicrotasks);
|
||||
env->context(), false, v8::MicrotasksScope::kDoNotRunMicrotasks);
|
||||
// Emit the after() hooks now that the exception has been handled.
|
||||
// Analogous to node/lib/internal/process/execution.js#L176-L180
|
||||
if (env->async_hooks()->fields()[node::AsyncHooks::kAfter]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue