Skip to content
This repository
Browse code

Fixed encoding in fs.writeFile().

  • Loading branch information...
commit 6eff8937d7a98d9c4b58bcabaa84c6b9384b2968 1 parent 2916a2a
Scott González scottgonzalez authored ry committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/node.js
2  src/node.js
@@ -518,7 +518,7 @@ var fsModule = createInternalModule("fs", function (exports) {
518 518 }
519 519
520 520 exports.writeFile = function (path, data, encoding_) {
521   - var encoding = (typeof(encoding) == 'string' ? encoding_ : 'utf8');
  521 + var encoding = (typeof(encoding_) == 'string' ? encoding_ : 'utf8');
522 522 var callback_ = arguments[arguments.length - 1];
523 523 var callback = (typeof(callback_) == 'function' ? callback_ : null);
524 524 exports.open(path, 'w', 0666, function (openErr, fd) {

0 comments on commit 6eff893

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