Skip to content

Conversation

@wcr-karan
Copy link

No description provided.

@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 Nov 30, 2025
@aduh95
Copy link
Contributor

aduh95 commented Nov 30, 2025

You need to include a test that fails on main and passes with your changes

@wcr-karan
Copy link
Author

This PR fixes issue #60837.

Problem:
replServer.setupHistory() was swallowing errors thrown inside the callback starting from Node v24.2.0.

Fix:
Propagate errors thrown in the setupHistory callback and ensure they are correctly handled.

Added a test in:
test/parallel/test-repl-setup-history-error.js
to ensure the error is not swallowed.

@aduh95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants