summaryrefslogtreecommitdiff
path: root/lib/_debugger.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_debugger.js')
-rw-r--r--lib/_debugger.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js
index 993fcba28f..f7b8252499 100644
--- a/lib/_debugger.js
+++ b/lib/_debugger.js
@@ -182,7 +182,7 @@ exports.Client = Client;
Client.prototype._addHandle = function(desc) {
- if (!IS_OBJECT(desc) || !IS_NUMBER(desc.handle)) {
+ if (!util.isObject(desc) || !util.isNumber(desc.handle)) {
return;
}
@@ -296,7 +296,7 @@ Client.prototype.reqLookup = function(refs, cb) {
this.req(req, function(err, res) {
if (err) return cb(err);
for (var ref in res) {
- if (IS_OBJECT(res[ref])) {
+ if (util.isObject(res[ref])) {
self._addHandle(res[ref]);
}
}
@@ -559,7 +559,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
}
- if (IS_ARRAY(mirror) && !IS_NUMBER(prop.name)) {
+ if (util.isArray(mirror) && !util.isNumber(prop.name)) {
// Skip the 'length' property.
return;
}
@@ -592,7 +592,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
val = function() {};
} else if (handle.type === 'null') {
val = null;
- } else if (!IS_UNDEFINED(handle.value)) {
+ } else if (!util.isUndefined(handle.value)) {
val = handle.value;
} else if (handle.type === 'undefined') {
val = undefined;
@@ -891,7 +891,7 @@ Interface.prototype.print = function(text, oneline) {
if (this.killed) return;
this.clearline();
- this.stdout.write(IS_STRING(text) ? text : util.inspect(text));
+ this.stdout.write(util.isString(text) ? text : util.inspect(text));
if (oneline !== true) {
this.stdout.write('\n');
@@ -1213,7 +1213,7 @@ Interface.prototype.scripts = function() {
this.pause();
for (var id in client.scripts) {
var script = client.scripts[id];
- if (IS_OBJECT(script) && script.name) {
+ if (util.isObject(script) && script.name) {
if (displayNatives ||
script.name == client.currentScript ||
!script.isNative) {
@@ -1350,13 +1350,13 @@ Interface.prototype.setBreakpoint = function(script, line,
ambiguous;
// setBreakpoint() should insert breakpoint on current line
- if (IS_UNDEFINED(script)) {
+ if (util.isUndefined(script)) {
script = this.client.currentScript;
line = this.client.currentSourceLine + 1;
}
// setBreakpoint(line-number) should insert breakpoint in current script
- if (IS_UNDEFINED(line) && IS_NUMBER(script)) {
+ if (util.isUndefined(line) && util.isNumber(script)) {
line = script;
script = this.client.currentScript;
}
@@ -1451,7 +1451,7 @@ Interface.prototype.clearBreakpoint = function(script, line) {
if (bp.scriptId === script ||
bp.scriptReq === script ||
(bp.script && bp.script.indexOf(script) !== -1)) {
- if (!IS_UNDEFINED(index)) {
+ if (!util.isUndefined(index)) {
ambiguous = true;
}
if (bp.line === line) {
@@ -1464,7 +1464,7 @@ Interface.prototype.clearBreakpoint = function(script, line) {
if (ambiguous) return this.error('Script name is ambiguous');
- if (IS_UNDEFINED(breakpoint)) {
+ if (util.isUndefined(breakpoint)) {
return this.error('Script : ' + script + ' not found');
}