mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
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>
This commit is contained in:
2 files changed
+3
No files matched your search
@@ -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;
|
||||
|
||||
@@ -36,6 +36,7 @@ function MyEE(cb) {
|
||||
|
||||
const myee = new MyEE(common.mustCall());
|
||||
|
||||
myee.hasOwnProperty('usingDomains');
|
||||
|
||||
util.inherits(ErrorEE, EventEmitter);
|
||||
function ErrorEE() {
|
||||
|
||||
Reference in new issue
Block a user