Skip to content

Commit

Permalink
worker: remove delete MessagePort.prototype.hasRef
Browse files Browse the repository at this point in the history
Node Code+Learn: remove delete MessagePort.prototype.hasRef;

PR-URL: #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>
  • Loading branch information
James Traver authored and jasnell committed Oct 17, 2018
1 parent 72258c3 commit 7673de8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/internal/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7673de8

Please sign in to comment.