diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-01-02 16:40:30 -0800 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-01-03 13:20:23 -0800 |
commit | d9fc6af32a50684930b04f0f2b701eb2fd62192b (patch) | |
tree | 47661068744d7b6e240b07be8432abf80cfaa29e /lib/domain.js | |
parent | 13eb17f4127469f93db4f248e81e92c87c5b5f58 (diff) | |
download | node-new-d9fc6af32a50684930b04f0f2b701eb2fd62192b.tar.gz |
node: change AsyncListener API
There was a flaw in the old API that has been fixed. Now the
asyncListener callback is now the "create" object property in the
callback object, and is optional.
Diffstat (limited to 'lib/domain.js')
-rw-r--r-- | lib/domain.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/domain.js b/lib/domain.js index 2a20a984d3..0fa4c58e6a 100644 --- a/lib/domain.js +++ b/lib/domain.js @@ -42,9 +42,6 @@ exports._stack = stack; exports.active = null; -function noop() { } - - var listenerObj = { error: function errorHandler(domain, er) { var caught = false; @@ -104,7 +101,7 @@ inherits(Domain, EventEmitter); function Domain() { EventEmitter.call(this); this.members = []; - this._listener = process.createAsyncListener(noop, listenerObj, this); + this._listener = process.createAsyncListener(listenerObj, this); } Domain.prototype.members = undefined; |