refactor: use v8::True(isolate) and v8::False(isolate) (#46571)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot] 2025-04-08 15:40:15 -05:00 committed by GitHub
parent 33964528e1
commit ffb4f0f812
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -54,8 +54,7 @@ void CallTranslator(v8::Local<v8::External> external,
args->ThrowTypeError("One-time callback was called more than once");
return;
} else {
state->Set(context, called_symbol, v8::Boolean::New(isolate, true))
.ToChecked();
state->Set(context, called_symbol, v8::True(isolate)).ToChecked();
}
}