Skip to content

Conversation

@Zohaibarif69
Copy link

Fixes a regression where setupHistoryManager() could run before
this.input was assigned, causing a crash when onHistoryFileLoaded
is present (for example, Proxy or jest.mock() inputs).

This change ensures this.input is initialized before history setup
and adds a regression test to cover the scenario.

Refs: #61526

Testing:

  • Added regression test
  • Unable to run tests locally due to Windows build issues; CI should validate

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. readline Issues and PRs related to the built-in readline module. labels Jan 27, 2026
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. readline Issues and PRs related to the built-in readline module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants