From 7801a05769736c210c7105308b0650c703cb5253 Mon Sep 17 00:00:00 2001 From: Christoph Diehl Date: Sat, 10 Jun 2017 07:06:31 +0200 Subject: [PATCH] Hex is the correct escape in strict mode --- lib/logging/console.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/logging/console.js b/lib/logging/console.js index d340348..ec27744 100644 --- a/lib/logging/console.js +++ b/lib/logging/console.js @@ -7,9 +7,9 @@ var websocket = null var logger = (function () { // eslint-disable-line no-unused-vars const sep = '\n/* ### NEXT TESTCASE ############################## */' const color = { - red: '\033[1;31m', // eslint-disable-line - green: '\033[1;32m', // eslint-disable-line - clear: '\033[0m' // eslint-disable-line + red: '\u{1b}[1;31m', + green: '\u{1b}[1;32m', + clear: '\u{1b}[0m' } if (utils.platform.isWindows) { color.red = '' @@ -49,7 +49,7 @@ var logger = (function () { // eslint-disable-line no-unused-vars } function JSError (msg) { - error(comment("ERROR: " + msg)) + error(comment('ERROR: ' + msg)) } function comment (msg) {