From 68af59ef6b97f7f20860a4aff5ea7379f6e80fea Mon Sep 17 00:00:00 2001 From: Tim Caswell Date: Sat, 20 Feb 2010 22:53:31 -0600 Subject: [PATCH] Fix typo in fs.writeFile --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 7b5aac012b..415df7b453 100644 --- a/src/node.js +++ b/src/node.js @@ -508,7 +508,7 @@ var fsModule = createInternalModule("fs", function (exports) { if (callback) callback(writeErr); }); } else { - if (written === _data.length) { + if (written === data.length) { exports.close(fd, callback); } else { writeAll(fd, data.slice(written), encoding, callback);