Fix this context when calling multiple event listeners (fixes #2692).

This commit is contained in:
Melvin Groenhoff
2020-09-04 10:20:30 +02:00
parent 0c5eae2349
commit d84c2b780b
2 changed files with 31 additions and 1 deletions

View File

@@ -214,7 +214,8 @@ Node.prototype._emitInput = function(arg) {
c++;
}
try {
node._inputCallbacks[i](
cb.call(
node,
arg,
function() { node.send.apply(node,arguments) },
function(err) {