Revision f230a1cf deps/v8/src/d8.js
deps/v8/src/d8.js | ||
---|---|---|
40 | 40 |
|
41 | 41 |
function ToInspectableObject(obj) { |
42 | 42 |
if (!obj && typeof obj === 'object') { |
43 |
return void 0;
|
|
43 |
return UNDEFINED;
|
|
44 | 44 |
} else { |
45 | 45 |
return Object(obj); |
46 | 46 |
} |
... | ... | |
333 | 333 |
} |
334 | 334 |
|
335 | 335 |
if ((cmd === undefined) || !cmd) { |
336 |
this.request_ = void 0;
|
|
336 |
this.request_ = UNDEFINED;
|
|
337 | 337 |
return; |
338 | 338 |
} |
339 | 339 |
|
... | ... | |
492 | 492 |
case 'trace': |
493 | 493 |
case 'tr': |
494 | 494 |
// Return undefined to indicate command handled internally (no JSON). |
495 |
this.request_ = void 0;
|
|
495 |
this.request_ = UNDEFINED;
|
|
496 | 496 |
this.traceCommand_(args); |
497 | 497 |
break; |
498 | 498 |
|
... | ... | |
500 | 500 |
case '?': |
501 | 501 |
this.helpCommand_(args); |
502 | 502 |
// Return undefined to indicate command handled internally (no JSON). |
503 |
this.request_ = void 0;
|
|
503 |
this.request_ = UNDEFINED;
|
|
504 | 504 |
break; |
505 | 505 |
|
506 | 506 |
default: |
... | ... | |
2124 | 2124 |
var property_value_json; |
2125 | 2125 |
switch (typeof property_value) { |
2126 | 2126 |
case 'object': |
2127 |
if (property_value === null) {
|
|
2127 |
if (IS_NULL(property_value)) {
|
|
2128 | 2128 |
property_value_json = 'null'; |
2129 | 2129 |
} else if (typeof property_value.toJSONProtocol == 'function') { |
2130 | 2130 |
property_value_json = property_value.toJSONProtocol(true); |
... | ... | |
2217 | 2217 |
case "symbol": |
2218 | 2218 |
return "Symbol(" + (x.name ? Stringify(x.name, depth) : "") + ")" |
2219 | 2219 |
case "object": |
2220 |
if (x === null) return "null";
|
|
2220 |
if (IS_NULL(x)) return "null";
|
|
2221 | 2221 |
if (x.constructor && x.constructor.name === "Array") { |
2222 | 2222 |
var elems = []; |
2223 | 2223 |
for (var i = 0; i < x.length; ++i) { |
... | ... | |
2233 | 2233 |
var props = []; |
2234 | 2234 |
for (var name in x) { |
2235 | 2235 |
var desc = Object.getOwnPropertyDescriptor(x, name); |
2236 |
if (desc === void 0) continue;
|
|
2236 |
if (IS_UNDEFINED(desc)) continue;
|
|
2237 | 2237 |
if ("value" in desc) { |
2238 | 2238 |
props.push(name + ": " + Stringify(desc.value, depth - 1)); |
2239 | 2239 |
} |
Also available in: Unified diff