Currently we are able to display certain hidden properties of objects from util.inspect through the V8 debug context's MakeMirror:
- Promise status and value:
|
const mirror = Debug.MakeMirror(p, true); |
|
return {status: mirror.status(), value: mirror.promiseValue().value_}; |
- Collection iterator:
|
const mirror = Debug.MakeMirror(value, true); |
|
var nextRecurseTimes = recurseTimes === null ? null : recurseTimes - 1; |
|
var vals = mirror.preview(); |
While it works just fine currently, the V8 debugger API will be deprecated in V8 5.9 in favor of the v8 inspector API. We'll need to find a way to use the inspector API for this purpose.
/cc @nodejs/v8
Currently we are able to display certain hidden properties of objects from
util.inspectthrough the V8 debug context'sMakeMirror:node/lib/util.js
Lines 287 to 288 in e296ffb
node/lib/util.js
Lines 739 to 741 in e296ffb
While it works just fine currently, the V8 debugger API will be deprecated in V8 5.9 in favor of the v8 inspector API. We'll need to find a way to use the inspector API for this purpose.
/cc @nodejs/v8