|
|
@ -98,7 +98,21 @@ var formatter = function(value, indent, parents) { |
|
|
|
}); |
|
|
|
} else { |
|
|
|
return formatObject(value, indent, parents, '{}', function(x, f) { |
|
|
|
return f(x) + ': ' + f(value[x]); |
|
|
|
var child; |
|
|
|
if (value.__lookupGetter__(x)) { |
|
|
|
if (value.__lookupSetter__(x)) { |
|
|
|
child = "[Dynamic Property]"; |
|
|
|
} else { |
|
|
|
child = "[Dynamic Property Read-only]"; |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (value.__lookupSetter__(x)) { |
|
|
|
child = "[Dynamic Property Write-only]"; |
|
|
|
} else { |
|
|
|
child = f(value[x]); |
|
|
|
} |
|
|
|
} |
|
|
|
return f(x) + ': ' + child; |
|
|
|
}); |
|
|
|
} |
|
|
|
return buffer; |
|
|
@ -113,6 +127,7 @@ var formatter = function(value, indent, parents) { |
|
|
|
var formatObject = function(obj, indent, parents, parenthesis, entryFormatter) { |
|
|
|
var buffer = parenthesis[0]; |
|
|
|
var values = []; |
|
|
|
var x; |
|
|
|
|
|
|
|
var localFormatter = function(value) { |
|
|
|
return formatter(value, indent + ' ', parents); |
|
|
|