diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-08-06 14:22:13 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2013-08-09 16:13:56 -0700 |
commit | 2ef1782bbce15f81b4087d07abe33ef006e7c02d (patch) | |
tree | 8eec7a9131436b6d81a961ed34584dc98fc1fe0c /src/node.js | |
parent | f9b7714b4b3f04cba10c4d8b32dad48a68988799 (diff) | |
download | node-2ef1782bbce15f81b4087d07abe33ef006e7c02d.tar.gz |
node: remove domain nextTick
It's ridiculously cheap to check if process.domain is set. Don't bother
cluttering the code.
Diffstat (limited to 'src/node.js')
-rw-r--r-- | src/node.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/node.js b/src/node.js index f5411cffd..0652bdf72 100644 --- a/src/node.js +++ b/src/node.js @@ -330,7 +330,6 @@ process.nextTick = nextTick; // needs to be accessible from cc land - process._nextDomainTick = _nextDomainTick; process._tickCallback = _tickCallback; process._tickDomainCallback = _tickDomainCallback; @@ -415,16 +414,10 @@ if (process._exiting) return; - nextTickQueue.push({ callback: callback, domain: null }); - infoBox[length]++; - } - - function _nextDomainTick(callback) { - // on the way out, don't bother. it won't get fired anyway. - if (process._exiting) - return; - - nextTickQueue.push({ callback: callback, domain: process.domain }); + nextTickQueue.push({ + callback: callback, + domain: process.domain || null + }); infoBox[length]++; } }; |