Title: console.log(proxy) default output is less than helpful · Issue #60964 · nodejs/node · GitHub
Open Graph Title: console.log(proxy) default output is less than helpful · Issue #60964 · nodejs/node
X Title: console.log(proxy) default output is less than helpful · Issue #60964 · nodejs/node
Description: Version All Platform All Subsystem console/util.inspect What steps will reproduce the bug? const p = new Proxy({}, { ownKeys() { return ['a']; }, getOwnPropertyDescriptor() { return { value: 1, writable: false, enumerable: true, configur...
Open Graph Description: Version All Platform All Subsystem console/util.inspect What steps will reproduce the bug? const p = new Proxy({}, { ownKeys() { return ['a']; }, getOwnPropertyDescriptor() { return { value: 1, wri...
X Description: Version All Platform All Subsystem console/util.inspect What steps will reproduce the bug? const p = new Proxy({}, { ownKeys() { return ['a']; }, getOwnPropertyDescriptor() { return { value...
Opengraph URL: https://github.com/nodejs/node/issues/60964
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"console.log(proxy) default output is less than helpful","articleBody":"### Version\n\nAll\n\n### Platform\n\n```text\nAll\n```\n\n### Subsystem\n\nconsole/util.inspect\n\n### What steps will reproduce the bug?\n\n```js\nconst p = new Proxy({}, {\n ownKeys() { return ['a']; },\n getOwnPropertyDescriptor() {\n return { value: 1, writable: false, enumerable: true, configurable: true };\n },\n has() { return true; },\n get() { return 1; },\n});\nconsole.log(p); // Outputs '{}'\n```\n\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nIdeally, the output would include all enumerable properties, just like it would with a normal, non-proxy object.\n\n### What do you see instead?\n\n`{}` ... omitting the enumerable ownKeys\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/jasnell","@type":"Person","name":"jasnell"},"datePublished":"2025-12-05T16:33:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/60964/node/issues/60964"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5fced8c0-7cec-4af3-4527-9bced5c52701 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88C8:C4B79:1DFD78F:2B33015:6A4CF348 |
| html-safe-nonce | 3dd0ead1522fe77a762f57debc179cc7646c0b4b6e32c895226116a798e9a030 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEM4OkM0Qjc5OjFERkQ3OEY6MkIzMzAxNTo2QTRDRjM0OCIsInZpc2l0b3JfaWQiOiI3MDUwOTQyNzM1MjUxNzMxMjcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c06024814b934c8cade0ae5be923122dc27ac4af81e8312429d1bca1437ff3f6 |
| hovercard-subject-tag | issue:3699600917 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/60964/issue_layout |
| twitter:image | https://opengraph.githubassets.com/15b58ea40bbe1604e6374a36cda008f4765e32db4d14d4164aa48b8634fa34b1/nodejs/node/issues/60964 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/15b58ea40bbe1604e6374a36cda008f4765e32db4d14d4164aa48b8634fa34b1/nodejs/node/issues/60964 |
| og:image:alt | Version All Platform All Subsystem console/util.inspect What steps will reproduce the bug? const p = new Proxy({}, { ownKeys() { return ['a']; }, getOwnPropertyDescriptor() { return { value: 1, wri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jasnell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | efec6750a5afcaeaf5dfcf629f404cf98c8371e3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width