Skip to content

Commit e6c5ac4

Browse files
Jonas Pfennigerry
Jonas Pfenniger
authored andcommitted
posix.cat not using call() correctly
'this' will point to "arguments" and the arguments of the callback itself will not be set.
1 parent 120492e commit e6c5ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ var posixModule = createInternalModule("posix", function (exports) {
651651
exports.close(fd);
652652
}
653653
}).addErrback(function () {
654-
promise.emitError.call(arguments);
654+
promise.emitError.apply(promise, arguments);
655655
});
656656
}
657657
readChunk();

0 commit comments

Comments
 (0)