Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use unicode to send escape character to shell instead of octal to wor…

…k with strict mode javascript
  • Loading branch information...
commit b73d1285b209a4b0826f9f9bd6ba2c1fc9386be1 1 parent 73936c4
@letharion letharion authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/debug.js
View
8 lib/debug.js
@@ -112,10 +112,10 @@ function debug(name) {
var ms = curr - (prev[name] || curr);
prev[name] = curr;
- fmt = ' \033[9' + c + 'm' + name + ' '
- + '\033[3' + c + 'm\033[90m'
- + fmt + '\033[3' + c + 'm'
- + ' +' + humanize(ms) + '\033[0m';
+ fmt = ' \u001b[9' + c + 'm' + name + ' '
+ + '\u001b[3' + c + 'm\u001b[90m'
+ + fmt + '\u001b[3' + c + 'm'
+ + ' +' + humanize(ms) + '\u001b[0m';
console.error.apply(this, arguments);
}
Please sign in to comment.
Something went wrong with that request. Please try again.