events: ensure usingDomain is always boolean
authorTrevor Norris <trev.norris@gmail.com>
Wed, 20 Feb 2013 22:52:46 +0000 (14:52 -0800)
committerisaacs <i@izs.me>
Sat, 2 Mar 2013 01:36:47 +0000 (17:36 -0800)
Small addition to ensure that exports.usingDomains is always a bool.

lib/events.js

index 69af3ae..443de4b 100644 (file)
@@ -22,6 +22,8 @@
 var isArray = Array.isArray;
 var domain;
 
+exports.usingDomains = false;
+
 function EventEmitter() {
   this.domain = null;
   if (exports.usingDomains) {