0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00

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 <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
This commit is contained in:
James Traver 2018-10-12 11:38:56 -05:00 committed by Anna Henningsen
parent fc0da7f6b4
commit b22903eacd
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -71,7 +71,6 @@ Object.setPrototypeOf(MessagePort.prototype, EventEmitter.prototype);
// Finally, purge methods we don't want to be public. // Finally, purge methods we don't want to be public.
delete MessagePort.prototype.stop; delete MessagePort.prototype.stop;
delete MessagePort.prototype.drain; delete MessagePort.prototype.drain;
delete MessagePort.prototype.hasRef;
MessagePort.prototype.ref = MessagePortPrototype.ref; MessagePort.prototype.ref = MessagePortPrototype.ref;
MessagePort.prototype.unref = MessagePortPrototype.unref; MessagePort.prototype.unref = MessagePortPrototype.unref;