|
1 | 1 | 'use strict'; |
2 | 2 |
|
3 | | -var util = require('util'), |
4 | | - path = require('path'), |
5 | | - net = require('net'), |
6 | | - vm = require('vm'), |
7 | | - module = require('module'), |
8 | | - repl = module.requireRepl(), |
9 | | - inherits = util.inherits, |
10 | | - assert = require('assert'), |
11 | | - spawn = require('child_process').spawn; |
| 3 | +const util = require('util'); |
| 4 | +const path = require('path'); |
| 5 | +const net = require('net'); |
| 6 | +const vm = require('vm'); |
| 7 | +const module = require('module'); |
| 8 | +const repl = module.requireRepl(); |
| 9 | +const inherits = util.inherits; |
| 10 | +const assert = require('assert'); |
| 11 | +const spawn = require('child_process').spawn; |
12 | 12 |
|
13 | 13 | exports.start = function(argv, stdin, stdout) { |
14 | 14 | argv || (argv = process.argv.slice(2)); |
@@ -137,7 +137,7 @@ Protocol.prototype.serialize = function(req) { |
137 | 137 | }; |
138 | 138 |
|
139 | 139 |
|
140 | | -var NO_FRAME = -1; |
| 140 | +const NO_FRAME = -1; |
141 | 141 |
|
142 | 142 | function Client() { |
143 | 143 | net.Stream.call(this); |
@@ -176,7 +176,7 @@ Client.prototype._addHandle = function(desc) { |
176 | 176 | }; |
177 | 177 |
|
178 | 178 |
|
179 | | -var natives = process.binding('natives'); |
| 179 | +const natives = process.binding('natives'); |
180 | 180 |
|
181 | 181 |
|
182 | 182 | Client.prototype._addScript = function(desc) { |
@@ -645,7 +645,7 @@ Client.prototype.fullTrace = function(cb) { |
645 | 645 |
|
646 | 646 |
|
647 | 647 |
|
648 | | -var commands = [ |
| 648 | +const commands = [ |
649 | 649 | [ |
650 | 650 | 'run (r)', |
651 | 651 | 'cont (c)', |
@@ -772,22 +772,22 @@ function Interface(stdin, stdout, args) { |
772 | 772 | process.once('SIGTERM', process.exit.bind(process, 0)); |
773 | 773 | process.once('SIGHUP', process.exit.bind(process, 0)); |
774 | 774 |
|
775 | | - var proto = Interface.prototype, |
776 | | - ignored = ['pause', 'resume', 'exitRepl', 'handleBreak', |
777 | | - 'requireConnection', 'killChild', 'trySpawn', |
778 | | - 'controlEval', 'debugEval', 'print', 'childPrint', |
779 | | - 'clearline'], |
780 | | - shortcut = { |
781 | | - 'run': 'r', |
782 | | - 'cont': 'c', |
783 | | - 'next': 'n', |
784 | | - 'step': 's', |
785 | | - 'out': 'o', |
786 | | - 'backtrace': 'bt', |
787 | | - 'setBreakpoint': 'sb', |
788 | | - 'clearBreakpoint': 'cb', |
789 | | - 'pause_': 'pause' |
790 | | - }; |
| 775 | + var proto = Interface.prototype; |
| 776 | + const ignored = ['pause', 'resume', 'exitRepl', 'handleBreak', |
| 777 | + 'requireConnection', 'killChild', 'trySpawn', |
| 778 | + 'controlEval', 'debugEval', 'print', 'childPrint', |
| 779 | + 'clearline']; |
| 780 | + const shortcut = { |
| 781 | + 'run': 'r', |
| 782 | + 'cont': 'c', |
| 783 | + 'next': 'n', |
| 784 | + 'step': 's', |
| 785 | + 'out': 'o', |
| 786 | + 'backtrace': 'bt', |
| 787 | + 'setBreakpoint': 'sb', |
| 788 | + 'clearBreakpoint': 'cb', |
| 789 | + 'pause_': 'pause' |
| 790 | + }; |
791 | 791 |
|
792 | 792 | function defineProperty(key, protoKey) { |
793 | 793 | // Check arity |
|
0 commit comments