Hex is the correct escape in strict mode

This commit is contained in:
Christoph Diehl 2017-06-10 07:06:31 +02:00
parent 5226f2549b
commit 7801a05769
1 changed files with 4 additions and 4 deletions

View File

@ -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) {