@@ -1139,13 +1139,6 @@ void MessagePort::Stop(const FunctionCallbackInfo<Value>& args) {
11391139 port->Stop ();
11401140}
11411141
1142- void MessagePort::CheckType (const FunctionCallbackInfo<Value>& args) {
1143- Environment* env = Environment::GetCurrent (args);
1144- args.GetReturnValue ().Set (
1145- GetMessagePortConstructorTemplate (env->isolate_data ())
1146- ->HasInstance (args[0 ]));
1147- }
1148-
11491142void MessagePort::Drain (const FunctionCallbackInfo<Value>& args) {
11501143 MessagePort* port;
11511144 ASSIGN_OR_RETURN_UNWRAP (&port, args[0 ].As <Object>());
@@ -1731,7 +1724,6 @@ static void CreatePerIsolateProperties(IsolateData* isolate_data,
17311724 // These are not methods on the MessagePort prototype, because
17321725 // the browser equivalents do not provide them.
17331726 SetMethod (isolate, target, " stopMessagePort" , MessagePort::Stop);
1734- SetMethod (isolate, target, " checkMessagePort" , MessagePort::CheckType);
17351727 SetMethod (isolate, target, " drainMessagePort" , MessagePort::Drain);
17361728 SetMethod (
17371729 isolate, target, " receiveMessageOnPort" , MessagePort::ReceiveMessage);
@@ -1767,7 +1759,6 @@ static void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
17671759 registry->Register (MessagePort::PostMessage);
17681760 registry->Register (MessagePort::Start);
17691761 registry->Register (MessagePort::Stop);
1770- registry->Register (MessagePort::CheckType);
17711762 registry->Register (MessagePort::Drain);
17721763 registry->Register (MessagePort::ReceiveMessage);
17731764 registry->Register (MessagePort::MoveToContext);
0 commit comments