From c8d4ff1d52e639434dcd09d2ee41e9f7926313c9 Mon Sep 17 00:00:00 2001 From: Anatoli Papirovski Date: Sat, 14 Oct 2017 21:17:47 -0400 Subject: [PATCH] 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 Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Refael Ackermann --- lib/events.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/events.js b/lib/events.js index c7a95cada1fd60..8ee587e87c5ff5 100644 --- a/lib/events.js +++ b/lib/events.js @@ -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) {