@@ -182,7 +182,7 @@ exports.Client = Client;
182
182
183
183
184
184
Client . prototype . _addHandle = function ( desc ) {
185
- if ( ! IS_OBJECT ( desc ) || ! IS_NUMBER ( desc . handle ) ) {
185
+ if ( ! util . isObject ( desc ) || ! util . isNumber ( desc . handle ) ) {
186
186
return ;
187
187
}
188
188
@@ -296,7 +296,7 @@ Client.prototype.reqLookup = function(refs, cb) {
296
296
this . req ( req , function ( err , res ) {
297
297
if ( err ) return cb ( err ) ;
298
298
for ( var ref in res ) {
299
- if ( IS_OBJECT ( res [ ref ] ) ) {
299
+ if ( util . isObject ( res [ ref ] ) ) {
300
300
self . _addHandle ( res [ ref ] ) ;
301
301
}
302
302
}
@@ -559,7 +559,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
559
559
}
560
560
561
561
562
- if ( IS_ARRAY ( mirror ) && ! IS_NUMBER ( prop . name ) ) {
562
+ if ( util . isArray ( mirror ) && ! util . isNumber ( prop . name ) ) {
563
563
// Skip the 'length' property.
564
564
return ;
565
565
}
@@ -592,7 +592,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
592
592
val = function ( ) { } ;
593
593
} else if ( handle . type === 'null' ) {
594
594
val = null ;
595
- } else if ( ! IS_UNDEFINED ( handle . value ) ) {
595
+ } else if ( ! util . isUndefined ( handle . value ) ) {
596
596
val = handle . value ;
597
597
} else if ( handle . type === 'undefined' ) {
598
598
val = undefined ;
@@ -891,7 +891,7 @@ Interface.prototype.print = function(text, oneline) {
891
891
if ( this . killed ) return ;
892
892
this . clearline ( ) ;
893
893
894
- this . stdout . write ( IS_STRING ( text ) ? text : util . inspect ( text ) ) ;
894
+ this . stdout . write ( util . isString ( text ) ? text : util . inspect ( text ) ) ;
895
895
896
896
if ( oneline !== true ) {
897
897
this . stdout . write ( '\n' ) ;
@@ -1213,7 +1213,7 @@ Interface.prototype.scripts = function() {
1213
1213
this . pause ( ) ;
1214
1214
for ( var id in client . scripts ) {
1215
1215
var script = client . scripts [ id ] ;
1216
- if ( IS_OBJECT ( script ) && script . name ) {
1216
+ if ( util . isObject ( script ) && script . name ) {
1217
1217
if ( displayNatives ||
1218
1218
script . name == client . currentScript ||
1219
1219
! script . isNative ) {
@@ -1350,13 +1350,13 @@ Interface.prototype.setBreakpoint = function(script, line,
1350
1350
ambiguous ;
1351
1351
1352
1352
// setBreakpoint() should insert breakpoint on current line
1353
- if ( IS_UNDEFINED ( script ) ) {
1353
+ if ( util . isUndefined ( script ) ) {
1354
1354
script = this . client . currentScript ;
1355
1355
line = this . client . currentSourceLine + 1 ;
1356
1356
}
1357
1357
1358
1358
// setBreakpoint(line-number) should insert breakpoint in current script
1359
- if ( IS_UNDEFINED ( line ) && IS_NUMBER ( script ) ) {
1359
+ if ( util . isUndefined ( line ) && util . isNumber ( script ) ) {
1360
1360
line = script ;
1361
1361
script = this . client . currentScript ;
1362
1362
}
@@ -1451,7 +1451,7 @@ Interface.prototype.clearBreakpoint = function(script, line) {
1451
1451
if ( bp . scriptId === script ||
1452
1452
bp . scriptReq === script ||
1453
1453
( bp . script && bp . script . indexOf ( script ) !== - 1 ) ) {
1454
- if ( ! IS_UNDEFINED ( index ) ) {
1454
+ if ( ! util . isUndefined ( index ) ) {
1455
1455
ambiguous = true ;
1456
1456
}
1457
1457
if ( bp . line === line ) {
@@ -1464,7 +1464,7 @@ Interface.prototype.clearBreakpoint = function(script, line) {
1464
1464
1465
1465
if ( ambiguous ) return this . error ( 'Script name is ambiguous' ) ;
1466
1466
1467
- if ( IS_UNDEFINED ( breakpoint ) ) {
1467
+ if ( util . isUndefined ( breakpoint ) ) {
1468
1468
return this . error ( 'Script : ' + script + ' not found' ) ;
1469
1469
}
1470
1470
0 commit comments