Skip to content

Instantly share code, notes, and snippets.

@bentaber
Created July 3, 2012 15:33
Show Gist options
  • Save bentaber/3040500 to your computer and use it in GitHub Desktop.
Save bentaber/3040500 to your computer and use it in GitHub Desktop.
EventEmitter + Domains bug when 'domain' property is set
var events = require('events');
var util = require('util');
var Emitter = function() {
this.domain = 'abc.com';
};
util.inherits(Emitter, events.EventEmitter);
var emitter = new Emitter();
emitter.on('test', function() {
console.log('success');
});
emitter.emit('test');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment