From b22903eacd727c0c0c163161d128aaffd94c946e Mon Sep 17 00:00:00 2001 From: James Traver Date: Fri, 12 Oct 2018 11:38:56 -0500 Subject: [PATCH] worker: remove delete MessagePort.prototype.hasRef Node Code+Learn: remove delete MessagePort.prototype.hasRef; PR-URL: https://github.com/nodejs/node/pull/23471 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Shelley Vohr --- lib/internal/worker.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/internal/worker.js b/lib/internal/worker.js index 41432f55e94d35..88580893cdc015 100644 --- a/lib/internal/worker.js +++ b/lib/internal/worker.js @@ -71,7 +71,6 @@ Object.setPrototypeOf(MessagePort.prototype, EventEmitter.prototype); // Finally, purge methods we don't want to be public. delete MessagePort.prototype.stop; delete MessagePort.prototype.drain; -delete MessagePort.prototype.hasRef; MessagePort.prototype.ref = MessagePortPrototype.ref; MessagePort.prototype.unref = MessagePortPrototype.unref;