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
|
@ -17,8 +17,7 @@ namespace gin_helper {
|
|||
PromiseBase::SettleScope::SettleScope(const PromiseBase& base)
|
||||
: handle_scope_{base.isolate()},
|
||||
context_{base.GetContext()},
|
||||
microtasks_scope_{base.isolate(), context_->GetMicrotaskQueue(), false,
|
||||
v8::MicrotasksScope::kRunMicrotasks},
|
||||
microtasks_scope_{context_, false, v8::MicrotasksScope::kRunMicrotasks},
|
||||
context_scope_{context_} {}
|
||||
|
||||
PromiseBase::SettleScope::~SettleScope() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue