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:
Myles Borins 2018-02-22 16:07:06 -05:00
parent 9cb96ac828
commit 6657b153ab
No known key found for this signature in database
GPG Key ID: 933B01F40B5CA946
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -36,6 +36,7 @@ function MyEE(cb) {
const myee = new MyEE(common.mustCall());
myee.hasOwnProperty('usingDomains');
util.inherits(ErrorEE, EventEmitter);
function ErrorEE() {