Permalink
Browse files

Remove octal escape sequences, for strict mode happiness

  • Loading branch information...
1 parent fa2367f commit 99e7798a8246db2a45f742449e1162b24b1bef6a Jonas Westerlund committed Jul 3, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/debug.js
View
@@ -113,10 +113,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);
}

0 comments on commit 99e7798

Please sign in to comment.