From e6c5ac4f73f69c4e87aa5a7c7e84bccfb3ba12e6 Mon Sep 17 00:00:00 2001 From: Jonas Pfenniger Date: Tue, 22 Dec 2009 14:52:40 +0100 Subject: [PATCH] posix.cat not using call() correctly 'this' will point to "arguments" and the arguments of the callback itself will not be set. --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 69416d0ebb..d8acce40b4 100644 --- a/src/node.js +++ b/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();