events: remove unnecessary console instantiation
Previously, console had to be compiled in case it was not available but this is no longer necessary - remove it. PR-URL: https://github.com/nodejs/node/pull/16212 Refs: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
f61cc15c6a
commit
c8d4ff1d52
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user