FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

debugger: fix behavior of { a: 1 } in the debugger repl by meixg · Pull Request #46924 · nodejs/node · GitHub

/ node Public

debugger: fix behavior of { a: 1 } in the debugger repl - #46924

Closed
meixg wants to merge 1 commit into
nodejs:mainfrom
meixg:debugger-repl
Closed

debugger: fix behavior of { a: 1 } in the debugger repl#46924
meixg wants to merge 1 commit into
nodejs:mainfrom
meixg:debugger-repl

Conversation

meixg commented Mar 3, 2023

Copy link
Copy Markdown
Member

fix: #46808

nodejs-github-bot added debugger Issues and PRs related to the debugger subsystem. needs-ci PRs that need a full CI run. labels Mar 3, 2023

BridgeAR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The change itself is LGTM. I think we should add a test though?

Comment thread lib/internal/debugger/inspect_repl.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think we also should append lib/internal/debugger/inspect_repl.js to this comment:

node/lib/repl.js

Lines 417 to 421 in 31156a7

// It's confusing for `{ a : 1 }` to be interpreted as a block
// statement rather than an object literal. So, we first try
// to wrap it in parentheses, so that it will be interpreted as
// an expression. Note that if the above condition changes,
// lib/internal/repl/utils.js needs to be changed to match.

meixg commented Mar 19, 2025

Copy link
Copy Markdown
Member Author

this can be closed, ref: #57498

meixg closed this Mar 19, 2025
meixg deleted the debugger-repl branch April 21, 2026 06:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debugger Issues and PRs related to the debugger subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different behavior of { a: 1 } in the REPL and the debugger

4 participants


Back | FazBrowse Home | New Git URL