Skip to content

Commit

Permalink
events: remove unnecessary console instantiation
Browse files Browse the repository at this point in the history
Previously, console had to be compiled in case it was not available
but this is no longer necessary - remove it.

PR-URL: #16212
Refs: #15111
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
apapirovski committed Oct 21, 2017
1 parent f61cc15 commit c8d4ff1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
return defaultMaxListeners;
},
set: function(arg) {
// force global console to be compiled.
// see https://github.com/nodejs/node/issues/4467
console;
// check whether the input is a positive number (whose value is zero or
// greater and not a NaN).
if (typeof arg !== 'number' || arg < 0 || arg !== arg) {
Expand Down

0 comments on commit c8d4ff1

Please sign in to comment.