projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8845eb
)
src: require EventEmitter via NativeModule
author
Trevor Norris
<trev.norris@gmail.com>
Wed, 13 Aug 2014 04:50:21 +0000
(21:50 -0700)
committer
Trevor Norris
<trev.norris@gmail.com>
Wed, 13 Aug 2014 04:50:21 +0000
(21:50 -0700)
Fixes a recent change causing test-process-kill-pid.js to fail.
Fixes: 931cbc1 "lib: don't use emitter.listeners(type).length"
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
src/node.js
patch
|
blob
|
history
diff --git
a/src/node.js
b/src/node.js
index aebe683d3fe9b077802514ff97842cfb0e8b739f..4126bf1f4757176410fc699a15030e9c9ac0a6b2 100644
(file)
--- a/
src/node.js
+++ b/
src/node.js
@@
-670,7
+670,7
@@
if (isSignal(type)) {
assert(signalWraps.hasOwnProperty(type));
- if (
EventEmitter
.listenerCount(this, type) === 0) {
+ if (
NativeModule.require('events')
.listenerCount(this, type) === 0) {
signalWraps[type].close();
delete signalWraps[type];
}