From c45afe819840d2915823df55f24574f0da139dcc Mon Sep 17 00:00:00 2001 From: Sarat Addepalli Date: Mon, 8 Jan 2018 23:16:27 +0530 Subject: 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 Reviewed-By: Ruben Bridgewater Reviewed-By: Teddy Katz --- lib/console.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/console.js') 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); } -- cgit v1.2.3