Skip to content

Commit c8d4ff1

Browse files
committed
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: #16212 Refs: #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 f61cc15 commit c8d4ff1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/events.js

-3
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)