diff options
author | koichik <koichik@improvement.jp> | 2011-04-28 15:38:28 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-04-28 04:57:00 -0400 |
commit | fcc04e67c87f872910e2a77c4d6888ac1568faa7 (patch) | |
tree | f69e6de5f758b1dfab5441bf7ca2c719fe1c23f5 /lib/buffer.js | |
parent | 1343ee8d54f1743b19e5b70b8f377ec65508f9a6 (diff) | |
download | nodejs-fcc04e67c87f872910e2a77c4d6888ac1568faa7.tar.gz nodejs-fcc04e67c87f872910e2a77c4d6888ac1568faa7.tar.bz2 nodejs-fcc04e67c87f872910e2a77c4d6888ac1568faa7.zip |
Fix SlowBuffer.write() with 'ucs2' throws ReferenceError.
Diffstat (limited to 'lib/buffer.js')
-rw-r--r-- | lib/buffer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js index ba0ae2684..52e5e8052 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -100,7 +100,7 @@ SlowBuffer.prototype.write = function(string, offset, encoding) { case 'ucs2': case 'ucs-2': - return this.ucs2Write(start, end); + return this.ucs2Write(string, offset); default: throw new Error('Unknown encoding'); |