summaryrefslogtreecommitdiff
path: root/lib/events.js
diff options
context:
space:
mode:
authorMyles Borins <mylesborins@google.com>2018-02-22 16:07:06 -0500
committerMyles Borins <mylesborins@google.com>2018-02-22 20:33:10 -0500
commit6657b153abba09a16e4a628f3a46fc2cdf176b7d (patch)
tree19c5ff03cd858f08f5d63c1319cb265355aafa48 /lib/events.js
parent9cb96ac82808254e3322119eb1e6b2a7b847741e (diff)
downloadnode-new-6657b153abba09a16e4a628f3a46fc2cdf176b7d.tar.gz
events: preset `usingDomains` to false
The line setting this was removed in a previous commit. This potentially breaks code in the wild using this property. Refs: https://github.com/nodejs/node/pull/17403#issuecomment-367814130 PR-URL: https://github.com/nodejs/node/pull/18944 Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'lib/events.js')
-rw-r--r--lib/events.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/events.js b/lib/events.js
index aec30e7239..1c69794337 100644
--- a/lib/events.js
+++ b/lib/events.js
@@ -31,6 +31,8 @@ module.exports = EventEmitter;
// Backwards-compat with node 0.10.x
EventEmitter.EventEmitter = EventEmitter;
+EventEmitter.usingDomains = false;
+
EventEmitter.prototype._events = undefined;
EventEmitter.prototype._eventsCount = 0;
EventEmitter.prototype._maxListeners = undefined;