Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit 52ca4a5

Browse files
apapirovskiaddaleax
authored andcommitted
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: nodejs/node#16212 Refs: nodejs/node#15111 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent e3afe77 commit 52ca4a5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/events.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
5555
return defaultMaxListeners;
5656
},
5757
set: function(arg) {
58-
// force global console to be compiled.
59-
// see https://github.com/nodejs/node/issues/4467
60-
console;
6158
// check whether the input is a positive number (whose value is zero or
6259
// greater and not a NaN).
6360
if (typeof arg !== 'number' || arg < 0 || arg !== arg) {

0 commit comments

Comments
 (0)