summaryrefslogtreecommitdiff
path: root/lib/console.js
diff options
context:
space:
mode:
authorSarat Addepalli <sarat.addepalli@paytm.com>2018-01-08 23:16:27 +0530
committerAnna Henningsen <anna@addaleax.net>2018-02-04 16:55:13 +0100
commitc45afe819840d2915823df55f24574f0da139dcc (patch)
tree343645a38221355d22c10bbffe6f5472d56963f6 /lib/console.js
parent591a8adeae9a4a366db87320d5ef373ceaa5c966 (diff)
downloadandroid-node-v8-c45afe819840d2915823df55f24574f0da139dcc.tar.gz
android-node-v8-c45afe819840d2915823df55f24574f0da139dcc.tar.bz2
android-node-v8-c45afe819840d2915823df55f24574f0da139dcc.zip
tools: non-Ascii linter for /lib only
Non-ASCII characters in /lib get compiled into the node binary, and may bloat the binary size unnecessarily. A linter rule may help prevent this. PR-URL: https://github.com/nodejs/node/pull/18043 Fixes: https://github.com/nodejs/node/issues/11209 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Diffstat (limited to 'lib/console.js')
-rw-r--r--lib/console.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/console.js b/lib/console.js
index b6fb3d88b1..e216934a7f 100644
--- a/lib/console.js
+++ b/lib/console.js
@@ -84,7 +84,7 @@ function createWriteErrorHandler(stream) {
// If there was an error, it will be emitted on `stream` as
// an `error` event. Adding a `once` listener will keep that error
// from becoming an uncaught exception, but since the handler is
- // removed after the event, non-console.* writes won’t be affected.
+ // removed after the event, non-console.* writes won't be affected.
// we are only adding noop if there is no one else listening for 'error'
if (stream.listenerCount('error') === 0) {
stream.on('error', noop);
@@ -125,7 +125,7 @@ function write(ignoreErrors, stream, string, errorhandler, groupIndent) {
// even in edge cases such as low stack space.
if (e.message === MAX_STACK_MESSAGE && e.name === 'RangeError')
throw e;
- // Sorry, there’s no proper way to pass along the error here.
+ // Sorry, there's no proper way to pass along the error here.
} finally {
stream.removeListener('error', noop);
}