refactor: use v8::True(isolate) and v8::False(isolate) (#46544)
This commit is contained in:
parent
9069542d0b
commit
ab23758e51
2 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue