Skip to content

Commit 2952512

Browse files
bnoordhuisitaloacasas
authored andcommitted
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: #11129 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3380cd5 commit 2952512

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/buffer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function fromString(string, encoding) {
212212
var b = new FastBuffer(allocPool, poolOffset, length);
213213
var actual = b.write(string, encoding);
214214
if (actual !== length) {
215-
// byteLength() may overestimate. Thats a rare case, though.
215+
// byteLength() may overestimate. That's a rare case, though.
216216
b = new FastBuffer(allocPool, poolOffset, actual);
217217
}
218218
poolOffset += actual;

lib/repl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ function REPLServer(prompt,
318318
let previouslyInRawMode;
319319
if (self.breakEvalOnSigint) {
320320
// Start the SIGINT watchdog before entering raw mode so that a very
321-
// quick Ctrl+C doesnt lead to aborting the process completely.
321+
// quick Ctrl+C doesn't lead to aborting the process completely.
322322
utilBinding.startSigintWatchdog();
323323
previouslyInRawMode = self._setRawMode(false);
324324
}

0 commit comments

Comments
 (0)