-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugger: fix TypeError of list command in inspector repl #42776
debugger: fix TypeError of list command in inspector repl #42776
Conversation
There is a ci failure that seems related to the change : https://github.com/nodejs/node/runs/6070093179?check_suite_focus=true |
ae6defd
to
cd64887
Compare
@meixg Thank you. I fixed. (but |
Based on the CI failures, it looks like this is quite flaky on some configurations 🤔 Any idea what might be causing this? |
|
||
const cli = startCLI([fixtures.path('debugger/three-lines.js')]); | ||
|
||
cli.waitForInitialBreak() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be refactored into an async function with awaits rather than a long then chain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be some related CI failures
|
fea4682
to
88f48e0
Compare
Landed in cbb92b0 |
PR-URL: nodejs#42776 Fixes: nodejs#42775 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#42776 Fixes: nodejs#42775 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs/node#42776 Fixes: nodejs/node#42775 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Currently list command throws TypeError after the inspector is disconnected.
This PR fixed to throw ERR_DEBUGGER_ERROR instead of TypeError.
Fixes: #42775