Skip to content

repl: fix repl crashing on variable declarations without init #59032

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

Merged

Conversation

dario-piotrowicz
Copy link
Member

Fixes: #59029

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. repl Issues and PRs related to the REPL subsystem. labels Jul 11, 2025
@dario-piotrowicz
Copy link
Member Author

This is significantly impacting REPL (I'm really sorry about that 😓), so I am proposing to fast-track hoping to land this fix as soon as possible

@dario-piotrowicz dario-piotrowicz added the fast-track PRs that do not need to wait for 48 hours to land. label Jul 11, 2025
Copy link
Contributor

Fast-track has been requested by @dario-piotrowicz. Please 👍 to approve.

@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Jul 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.06%. Comparing base (0d128e3) to head (b3c7b5a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #59032      +/-   ##
==========================================
- Coverage   90.08%   90.06%   -0.03%     
==========================================
  Files         645      645              
  Lines      189128   189132       +4     
  Branches    37088    37099      +11     
==========================================
- Hits       170378   170338      -40     
- Misses      11470    11512      +42     
- Partials     7280     7282       +2     
Files with missing lines Coverage Δ
lib/repl.js 94.22% <100.00%> (+0.01%) ⬆️

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jasnell jasnell added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 11, 2025
@jasnell
Copy link
Member

jasnell commented Jul 11, 2025

@nodejs/releasers ... this should likely go out in a patch release fairly soon

@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 11, 2025
@nodejs-github-bot nodejs-github-bot merged commit 049664b into nodejs:main Jul 11, 2025
69 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 049664b

@dario-piotrowicz dario-piotrowicz deleted the dario/59029/repl-let-bug branch July 11, 2025 16:56
targos pushed a commit that referenced this pull request Jul 17, 2025
PR-URL: #59032
Fixes: #59029
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Matthew Aitken <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fast-track PRs that do not need to wait for 48 hours to land. needs-ci PRs that need a full CI run. repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REPL crash when specifying let or var
5 participants