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 MylesBorins committed Oct 30, 2018
1 parent 26f4221 commit 1c17aa1
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 @@ -72,7 +72,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 1c17aa1

Please sign in to comment.