Skip to content
Browse files

posix.cat not using call() correctly

'this' will point to "arguments" and the arguments of the callback itself
will not be set.
  • Loading branch information...
1 parent 120492e commit e6c5ac4f73f69c4e87aa5a7c7e84bccfb3ba12e6 @zimbatm zimbatm committed with ry
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node.js
View
2 src/node.js
@@ -651,7 +651,7 @@ var posixModule = createInternalModule("posix", function (exports) {
exports.close(fd);
}
}).addErrback(function () {
- promise.emitError.call(arguments);
+ promise.emitError.apply(promise, arguments);
});
}
readChunk();

0 comments on commit e6c5ac4

Please sign in to comment.
Something went wrong with that request. Please try again.