Title: Different behavior of { a: 1 } in the REPL and the debugger · Issue #46808 · nodejs/node · GitHub
Open Graph Title: Different behavior of { a: 1 } in the REPL and the debugger · Issue #46808 · nodejs/node
X Title: Different behavior of { a: 1 } in the REPL and the debugger · Issue #46808 · nodejs/node
Description: Version v19.7.0 Platform No response Subsystem No response What steps will reproduce the bug? Evaluating { a: 1 } in the REPL and the debugger have different result % node > { a: 1 } { a: 1 } % node inspect app.js debug> { a: 1 } 1 How o...
Open Graph Description: Version v19.7.0 Platform No response Subsystem No response What steps will reproduce the bug? Evaluating { a: 1 } in the REPL and the debugger have different result % node > { a: 1 } { a: 1 } % nod...
X Description: Version v19.7.0 Platform No response Subsystem No response What steps will reproduce the bug? Evaluating { a: 1 } in the REPL and the debugger have different result % node > { a: 1 } { a: 1 } % ...
Opengraph URL: https://github.com/nodejs/node/issues/46808
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Different behavior of { a: 1 } in the REPL and the debugger","articleBody":"### Version\n\nv19.7.0\n\n### Platform\n\n_No response_\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nEvaluating `{ a: 1 }` in the REPL and the debugger have different result\r\n\r\n```\r\n% node\r\n\u003e { a: 1 }\r\n{ a: 1 }\r\n```\r\n\r\n```\r\n% node inspect app.js\r\ndebug\u003e { a: 1 }\r\n1\r\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior?\n\nLike REPL, the result of debugger will be\r\n```\r\n% node inspect app.js\r\ndebug\u003e { a: 1 }\r\n{ a: 1 }\r\n```\n\n### What do you see instead?\n\n```\r\n% node inspect app.js\r\ndebug\u003e { a: 1 }\r\n1\r\n```\n\n### Additional information\n\nThe results of `{ a: 1 }` in other runtimes: \r\n\r\n- ChromeDevTools: `{ a: 1 }`\r\n\r\n- Safari WebInspector: `{ a: 1 }`\r\n\r\nWe have a similar bug ([#45964](https://github.com/nodejs/node/issues/45964)) but we have not fixed yet and it was closed","author":{"url":"https://github.com/tuannd89","@type":"Person","name":"tuannd89"},"datePublished":"2023-02-24T05:07:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/46808/node/issues/46808"}
| 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:0c2c2c30-1d6f-2fd2-1a43-86ff71c02e8c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A656:D21CA:2934A0:385509:6A4C6DA5 |
| html-safe-nonce | b34e0d09dedf31e26a55f47cddee204602f7cc268180ace1d121cd925e7d69ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjU2OkQyMUNBOjI5MzRBMDozODU1MDk6NkE0QzZEQTUiLCJ2aXNpdG9yX2lkIjoiOTE3Mjg0MDY4NzU0MzgwNzM5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0863ac2e41d2f6349688e7496033dadaf4811b2c05922b67c68f25419cd61863 |
| hovercard-subject-tag | issue:1597914601 |
| 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/46808/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f06532d34f6056dda8b429bb0c81f28bf61fadd3bfaf7bbf36b89b14cc2b52e/nodejs/node/issues/46808 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f06532d34f6056dda8b429bb0c81f28bf61fadd3bfaf7bbf36b89b14cc2b52e/nodejs/node/issues/46808 |
| og:image:alt | Version v19.7.0 Platform No response Subsystem No response What steps will reproduce the bug? Evaluating { a: 1 } in the REPL and the debugger have different result % node > { a: 1 } { a: 1 } % nod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tuannd89 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width