summaryrefslogtreecommitdiff
path: root/lib/buffer.js
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2017-02-06 20:44:17 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2017-02-13 19:16:47 +0100
commitfd8587eb38804311c53d1da8315f267614d77c58 (patch)
treea5c2b16b64af43e8048228f7521e51c8a21fb6e3 /lib/buffer.js
parentc30fc8d49575b4c41ec0798ed64874b1daa5acd3 (diff)
downloadandroid-node-v8-fd8587eb38804311c53d1da8315f267614d77c58.tar.gz
android-node-v8-fd8587eb38804311c53d1da8315f267614d77c58.tar.bz2
android-node-v8-fd8587eb38804311c53d1da8315f267614d77c58.zip
lib: replace \u2019 with regular ascii quote
The previous commit stores baked-in files with non-ASCII characters as UTF-16. Replace the \u2019 with a regular quote character so that the files they're in can be stored as one-byte strings. The UTF-16 functionality is still tested by the Unicode diagram in lib/timers.js. PR-URL: https://github.com/nodejs/node/pull/11129 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/buffer.js')
-rw-r--r--lib/buffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js
index cb93d7e248..5d42f362e7 100644
--- a/lib/buffer.js
+++ b/lib/buffer.js
@@ -217,7 +217,7 @@ function fromString(string, encoding) {
var b = new FastBuffer(allocPool, poolOffset, length);
var actual = b.write(string, encoding);
if (actual !== length) {
- // byteLength() may overestimate. That’s a rare case, though.
+ // byteLength() may overestimate. That's a rare case, though.
b = new FastBuffer(allocPool, poolOffset, actual);
}
poolOffset += actual;