361+ if ( evalFrames . length === 0 ) {
362362 // Just eval in global scope.
363363 this . reqFrameEval ( expression , NO_FRAME , cb ) ;
364364 return ;
@@ -382,7 +382,7 @@ Client.prototype.reqFrameEval = function(expression, frame, cb) {
382382 arguments : { expression : expression }
383383 } ;
384384
385- if ( frame == NO_FRAME ) {
385+ if ( frame === NO_FRAME ) {
386386 req . arguments . global = true ;
387387 } else {
388388 req . arguments . frame = frame ;
@@ -529,9 +529,9 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
529529 var mirror ;
530530 var waiting = 1 ;
531531
532- if ( handle . className == 'Array' ) {
532+ if ( handle . className === 'Array' ) {
533533 mirror = [ ] ;
534- } else if ( handle . className == 'Date' ) {
534+ } else if ( handle . className === 'Date' ) {
535535 mirror = new Date ( handle . value ) ;
536536 } else {
537537 mirror = { } ;
@@ -774,10 +774,20 @@ function Interface(stdin, stdout, args) {
774774 process . once ( 'SIGHUP' , process . exit . bind ( process , 0 ) ) ;
775775
776776 var proto = Interface . prototype ;
777- const ignored = [ 'pause' , 'resume' , 'exitRepl' , 'handleBreak' ,
778- 'requireConnection' , 'killChild' , 'trySpawn' ,
779- 'controlEval' , 'debugEval' , 'print' , 'childPrint' ,
780- 'clearline' ] ;
777+ const ignored = [
778+ 'pause' ,
779+ 'resume' ,
780+ 'exitRepl' ,
781+ 'handleBreak' ,
782+ 'requireConnection' ,
783+ 'killChild' ,
784+ 'trySpawn' ,
785+ 'controlEval' ,
786+ 'debugEval' ,
787+ 'print' ,
788+ 'childPrint' ,
789+ 'clearline'
790+ ] ;
781791 const shortcut = {
782792 'run' : 'r' ,
783793 'cont' : 'c' ,
@@ -1097,14 +1107,14 @@ Interface.prototype.list = function(delta) {
10971107 var lineno = res . fromLine + i + 1 ;
10981108 if ( lineno < from || lineno > to ) continue ;
10991109
1100- const current = lineno == 1 + client . currentSourceLine ;
1110+ const current = lineno === 1 + client . currentSourceLine ;
11011111 const breakpoint = client . breakpoints . some ( function ( bp ) {
11021112 return ( bp . scriptReq === client . currentScript ||
11031113 bp . script === client . currentScript ) &&
1104- bp . line == lineno ;
1114+ bp . line === lineno ;
11051115 } ) ;
11061116
1107- if ( lineno == 1 ) {
1117+ if ( lineno === 1 ) {
11081118 // The first line needs to have the module wrapper filtered out of
11091119 // it.
11101120 var wrapper = Module . wrapper [ 0 ] ;
@@ -1151,7 +1161,7 @@ Interface.prototype.backtrace = function() {
11511161 return ;
11521162 }
11531163
1154- if ( bt . totalFrames == 0 ) {
1164+ if ( bt . totalFrames === 0 ) {
11551165 self . print ( '(empty stack)' ) ;
11561166 } else {
11571167 const trace = [ ] ;
@@ -1193,10 +1203,10 @@ Interface.prototype.scripts = function() {
11931203 var script = client . scripts [ id ] ;
11941204 if ( script !== null && typeof script === 'object' && script . name ) {
11951205 if ( displayNatives ||
1196- script . name == client . currentScript ||
1206+ script . name === client . currentScript ||
11971207 ! script . isNative ) {
11981208 scripts . push (
1199- ( script . name == client . currentScript ? '* ' : ' ' ) +
1209+ ( script . name === client . currentScript ? '* ' : ' ' ) +
12001210 id + ': ' +
12011211 path . basename ( script . name )
12021212 ) ;
0 commit comments