-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Closed
Labels
utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
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:
Lines 287 to 288 in e296ffb
const mirror = Debug.MakeMirror(p, true); return {status: mirror.status(), value: mirror.promiseValue().value_}; - Collection iterator:
Lines 739 to 741 in e296ffb
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
Metadata
Metadata
Assignees
Labels
utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.