-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
util.inspect getters ignored on class instance #30183
Copy link
Copy link
Closed
Labels
consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.
Description
Activity
Metadata
Metadata
Assignees
Labels
consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.
getters:trueworks correctly on a plain object:Output:
But the same operation on a class instance fails to print the getter.
Output:
The output I expect to see is: