Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Remove octal escape sequences and avoid reserved keyword
Browse files Browse the repository at this point in the history
Both are errors in strict mode.
  • Loading branch information
Jonas Westerlund authored and TooTallNate committed Jul 7, 2012
1 parent ed7fb14 commit e11b6b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/_debugger.js
Expand Up @@ -40,7 +40,7 @@ exports.start = function(argv, stdin, stdout) {
stdout = stdout || process.stdout;

var args = ['--debug-brk'].concat(argv),
interface = new Interface(stdin, stdout, args);
interface_ = new Interface(stdin, stdout, args);

stdin.resume();

Expand All @@ -49,7 +49,7 @@ exports.start = function(argv, stdin, stdout) {
'Please report this bug.');
console.error(e.message);
console.error(e.stack);
if (interface.child) interface.child.kill();
if (interface_.child) interface_.child.kill();
process.exit(1);
});
};
Expand Down Expand Up @@ -700,7 +700,7 @@ function SourceUnderline(sourceText, position, repl) {

// Colourize char if stdout supports colours
if (repl.useColors) {
tail = tail.replace(/(.+?)([^\w]|$)/, '\033[32m$1\033[39m$2');
tail = tail.replace(/(.+?)([^\w]|$)/, '\u001b[32m$1\u001b[39m$2');
}

// Return source line with coloured char at `position`
Expand Down

0 comments on commit e11b6b8

Please sign in to comment.