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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
  • Loading branch information
James Traver authored and MylesBorins committed Nov 29, 2018
1 parent 73f490a commit a5dd25f
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 a5dd25f

Please sign in to comment.