fix: gin_helper::MicrotasksScope instantiation (#43185)
This commit is contained in:
parent
e64302cc91
commit
6877671390
12 changed files with 55 additions and 44 deletions
|
@ -221,9 +221,9 @@ void SpellCheckClient::SpellCheckWords(const SpellCheckScope& scope,
|
|||
DCHECK(!scope.spell_check_.IsEmpty());
|
||||
|
||||
auto context = isolate_->GetCurrentContext();
|
||||
gin_helper::MicrotasksScope microtasks_scope(
|
||||
isolate_, context->GetMicrotaskQueue(),
|
||||
v8::MicrotasksScope::kDoNotRunMicrotasks);
|
||||
gin_helper::MicrotasksScope microtasks_scope{
|
||||
isolate_, context->GetMicrotaskQueue(), false,
|
||||
v8::MicrotasksScope::kDoNotRunMicrotasks};
|
||||
|
||||
v8::Local<v8::FunctionTemplate> templ = gin_helper::CreateFunctionTemplate(
|
||||
isolate_, base::BindRepeating(&SpellCheckClient::OnSpellCheckDone,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue