Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Jan 13, 2016
1 parent 987c79e commit 5cdead5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ Interface.prototype.setBreakpoint = function(script, line,
return;
}

var req;
let req;
if (/\(\)$/.test(script)) {
// setBreakpoint('functionname()');
req = {
Expand Down Expand Up @@ -1653,9 +1653,8 @@ Interface.prototype.trySpawn = function(cb) {
assert(!this.child);

var isRemote = false;
var match;
if (this.args.length === 2) {
match = this.args[1].match(/^([^:]+):(\d+)$/);
const match = this.args[1].match(/^([^:]+):(\d+)$/);

if (match) {
// Connecting to remote debugger
Expand All @@ -1679,7 +1678,7 @@ Interface.prototype.trySpawn = function(cb) {
}
isRemote = true;
} else {
match = this.args[1].match(/^--port=(\d+)$/);
const match = this.args[1].match(/^--port=(\d+)$/);
if (match) {
// Start debugger on custom port
// `node debug --port=5858 app.js`
Expand Down

0 comments on commit 5cdead5

Please sign in to comment.