@@ -790,7 +790,7 @@ void MessagePort::OnMessage(MessageProcessingMode mode) {
790
790
791
791
HandleScope handle_scope (env ()->isolate ());
792
792
Local<Context> context =
793
- object (env ()->isolate ())->GetCreationContext (). ToLocalChecked ();
793
+ object (env ()->isolate ())->GetCreationContextChecked ();
794
794
795
795
size_t processing_limit;
796
796
if (mode == MessageProcessingMode::kNormalOperation ) {
@@ -1048,7 +1048,7 @@ bool GetTransferList(Environment* env,
1048
1048
void MessagePort::PostMessage (const FunctionCallbackInfo<Value>& args) {
1049
1049
Environment* env = Environment::GetCurrent (args);
1050
1050
Local<Object> obj = args.This ();
1051
- Local<Context> context = obj->GetCreationContext (). ToLocalChecked ();
1051
+ Local<Context> context = obj->GetCreationContextChecked ();
1052
1052
1053
1053
if (args.Length () == 0 ) {
1054
1054
return THROW_ERR_MISSING_ARGS (env, " Not enough arguments to "
@@ -1134,9 +1134,9 @@ void MessagePort::ReceiveMessage(const FunctionCallbackInfo<Value>& args) {
1134
1134
return ;
1135
1135
}
1136
1136
1137
- MaybeLocal<Value> payload = port-> ReceiveMessage (
1138
- port->object ()-> GetCreationContext (). ToLocalChecked (),
1139
- MessageProcessingMode::kForceReadMessages );
1137
+ MaybeLocal<Value> payload =
1138
+ port->ReceiveMessage (port-> object ()-> GetCreationContextChecked (),
1139
+ MessageProcessingMode::kForceReadMessages );
1140
1140
if (!payload.IsEmpty ())
1141
1141
args.GetReturnValue ().Set (payload.ToLocalChecked ());
1142
1142
}
@@ -1547,7 +1547,7 @@ static void MessageChannel(const FunctionCallbackInfo<Value>& args) {
1547
1547
return ;
1548
1548
}
1549
1549
1550
- Local<Context> context = args.This ()->GetCreationContext (). ToLocalChecked ();
1550
+ Local<Context> context = args.This ()->GetCreationContextChecked ();
1551
1551
Context::Scope context_scope (context);
1552
1552
1553
1553
MessagePort* port1 = MessagePort::New (env, context);
0 commit comments