From a52aedeae08b57daedae56fd818be09df5f32e86 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 7 Mar 2019 10:18:03 +0100 Subject: worker: remove `ERR_CLOSED_MESSAGE_PORT` This aligns `MessagePort`s more with the web API. Refs: https://github.com/nodejs/node/issues/26463 PR-URL: https://github.com/nodejs/node/pull/26487 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- src/node_messaging.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/node_messaging.cc') diff --git a/src/node_messaging.cc b/src/node_messaging.cc index 345c496ecf..21e0191c12 100644 --- a/src/node_messaging.cc +++ b/src/node_messaging.cc @@ -729,7 +729,6 @@ void MessagePort::Start(const FunctionCallbackInfo& args) { MessagePort* port; ASSIGN_OR_RETURN_UNWRAP(&port, args.This()); if (!port->data_) { - THROW_ERR_CLOSED_MESSAGE_PORT(env); return; } port->Start(); @@ -741,7 +740,6 @@ void MessagePort::Stop(const FunctionCallbackInfo& args) { CHECK(args[0]->IsObject()); ASSIGN_OR_RETURN_UNWRAP(&port, args[0].As()); if (!port->data_) { - THROW_ERR_CLOSED_MESSAGE_PORT(env); return; } port->Stop(); -- cgit v1.2.3