René's URL Explorer Experiment


Title: `readline` Regression since v24.2.0 `Cannot read properties of undefined (reading 'pause')` · Issue #61526 · nodejs/node · GitHub

Open Graph Title: `readline` Regression since v24.2.0 `Cannot read properties of undefined (reading 'pause')` · Issue #61526 · nodejs/node

X Title: `readline` Regression since v24.2.0 `Cannot read properties of undefined (reading 'pause')` · Issue #61526 · nodejs/node

Description: Version v24.13.0 Platform Darwin robhogan-mac 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:05 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6041 arm64 Subsystem readline What steps will reproduce the bug? // readline-repro.js c...

Open Graph Description: Version v24.13.0 Platform Darwin robhogan-mac 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:05 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6041 arm64 Subsystem readline What steps will r...

X Description: Version v24.13.0 Platform Darwin robhogan-mac 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:05 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6041 arm64 Subsystem readline What steps will r...

Opengraph URL: https://github.com/nodejs/node/issues/61526

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`readline` Regression since v24.2.0 `Cannot read properties of undefined (reading 'pause')`","articleBody":"### Version\n\nv24.13.0\n\n### Platform\n\n```text\nDarwin robhogan-mac 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:05 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6041 arm64\n```\n\n### Subsystem\n\nreadline\n\n### What steps will reproduce the bug?\n\n```js\n// readline-repro.js\nconst readline = require('readline');\nconst {Readable} = require('stream');\n\nconst input = Readable.from([]);\ninput.onHistoryFileLoaded = () => 'oops';\nreadline.createInterface(input);\n```\n\n```sh\nnode ./readline-repro.js\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nPrior to Node v24.2.0, this did not crash\n\n### What do you see instead?\n\n```\nnode readline-repro.js\nnode:internal/readline/interface:571\n    this.input.pause();\n               ^\n\nTypeError: Cannot read properties of undefined (reading 'pause')\n    at Interface.pause (node:internal/readline/interface:571:16)\n    at ReplHistory.initialize (node:internal/repl/history:111:20)\n    at Interface.setupHistoryManager (node:internal/readline/interface:392:27)\n    at Interface.InterfaceConstructor (node:internal/readline/interface:218:8)\n    at new Interface (node:readline:115:3)\n    at Object.createInterface (node:readline:212:10)\n    at Object.\u003canonymous> (/private/tmp/readline-repro.js:6:21)\n    at Module._compile (node:internal/modules/cjs/loader:1734:14)\n    at Object..js (node:internal/modules/cjs/loader:1899:10)\n    at Module.load (node:internal/modules/cjs/loader:1469:32)\n\nNode.js v24.2.0\n```\n\n### Additional information\n\nThe example is contrived (what are we doing assigning `onHistoryFileLoaded` anyway?) but we hit this in the wild in a Node.js update when passing `jest.mock()` as the `input`. Rightly or wrongly, `jest-mock` by default uses a proxy object to create properties as mock functions on access.\n\nSo a more real-world issue would be:\n\n```js\n// readline-test.js\nconst readline = require('readline');\nreadline.createInterface(jest.mock());\n```\nNow crashes.\n\nI root caused this to https://github.com/nodejs/node/pull/58225. Repeating here:\n\n`setupHistoryManager` is called within `InterfaceConstructor`, here:\nhttps://github.com/nodejs/node/blob/644ba1f7e6cc67d9b68083897abd7b602a3c548f/lib/internal/readline/interface.js#L218\n\nNote that's **before** `this.input` is assigned, here:\nhttps://github.com/nodejs/node/blob/644ba1f7e6cc67d9b68083897abd7b602a3c548f/lib/internal/readline/interface.js#L236\n\nWhich is a problem because `setupHistoryManager` may call `initialize()`\nhttps://github.com/nodejs/node/blob/644ba1f7e6cc67d9b68083897abd7b602a3c548f/lib/internal/readline/interface.js#L384-L389\n\nWhich tries to call `.pause()` on the interface's `input` property (still before it has been assigned)\nhttps://github.com/nodejs/node/blob/644ba1f7e6cc67d9b68083897abd7b602a3c548f/lib/internal/repl/history.js#L111\n\nCC @puskin ","author":{"url":"https://github.com/robhogan","@type":"Person","name":"robhogan"},"datePublished":"2026-01-26T12:20:02Z","url":"https://github.com/nodejs/node/issues/61526"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8ba4ff64-ff5c-1bd8-6d67-5b93d04b1072
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC3C4:CC1A4:3009866:3D1CA57:6B01C48E
html-safe-nonceffefa666f92a7c5fbdfba6f01de91d8972329c159476f63be7b8509a042d2a97
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0M0OkNDMUE0OjMwMDk4NjY6M0QxQ0E1Nzo2QjAxQzQ4RSIsInZpc2l0b3JfaWQiOiIzMzYwMjQ5OTU3Mzk0MjY5MzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5bc6bdd96536f50b670deafbc95b96bf082cfe8dfb50a8aa8c4f2060e41baae2
hovercard-subject-tagissue:3855735978
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61526/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e5e8f4491c5792a92d63eed7e4d71418c98e0654265edf6f4279cb834cd2540d/nodejs/node/issues/61526
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e5e8f4491c5792a92d63eed7e4d71418c98e0654265edf6f4279cb834cd2540d/nodejs/node/issues/61526
og:image:altVersion v24.13.0 Platform Darwin robhogan-mac 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:05 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6041 arm64 Subsystem readline What steps will r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerobhogan
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/61526#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F61526
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F61526
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/61526
Reloadhttps://github.com/nodejs/node/issues/61526
Reloadhttps://github.com/nodejs/node/issues/61526
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues637 (637)https://github.com/nodejs/node/issues
Pull requests665 (665)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/insights
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/61526
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/61526
#67665https://github.com/nodejs/node/pull/67665
readline Regression since v24.2.0 Cannot read properties of undefined (reading 'pause')https://github.com/nodejs/node/issues/61526#top
#67665https://github.com/nodejs/node/pull/67665
readlineIssues and PRs related to the built-in readline module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22readline%22
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
https://github.com/robhogan
robhoganhttps://github.com/robhogan
on Jan 26, 2026https://github.com/nodejs/node/issues/61526#issue-3855735978
#58225https://github.com/nodejs/node/pull/58225
node/lib/internal/readline/interface.jshttps://github.com/nodejs/node/blob/644ba1f7e6cc67d9b68083897abd7b602a3c548f/lib/internal/readline/interface.js#L218
644ba1fhttps://github.com/nodejs/node/commit/644ba1f7e6cc67d9b68083897abd7b602a3c548f
node/lib/internal/readline/interface.jshttps://github.com/nodejs/node/blob/644ba1f7e6cc67d9b68083897abd7b602a3c548f/lib/internal/readline/interface.js#L236
644ba1fhttps://github.com/nodejs/node/commit/644ba1f7e6cc67d9b68083897abd7b602a3c548f
node/lib/internal/readline/interface.jshttps://github.com/nodejs/node/blob/644ba1f7e6cc67d9b68083897abd7b602a3c548f/lib/internal/readline/interface.js#L384-L389
644ba1fhttps://github.com/nodejs/node/commit/644ba1f7e6cc67d9b68083897abd7b602a3c548f
node/lib/internal/repl/history.jshttps://github.com/nodejs/node/blob/644ba1f7e6cc67d9b68083897abd7b602a3c548f/lib/internal/repl/history.js#L111
644ba1fhttps://github.com/nodejs/node/commit/644ba1f7e6cc67d9b68083897abd7b602a3c548f
@puskinhttps://github.com/puskin
robhoganhttps://github.com/robhogan
on Jan 26, 2026https://github.com/nodejs/node/issues/61526#event-22288051392
https://github.com/Zohaibarif69
Zohaibarif69https://github.com/Zohaibarif69
on Jan 26, 2026https://github.com/nodejs/node/issues/61526#issuecomment-3799886078
https://github.com/Zohaibarif69
Zohaibarif69https://github.com/Zohaibarif69
on Jan 26, 2026https://github.com/nodejs/node/issues/61526#issuecomment-3800829006
https://private-user-images.githubusercontent.com/143008736/540625127-736072d6-c87e-4b60-8564-748772236628.PNG?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNzgyNjYsIm5iZiI6MTc5NTI3Nzk2NiwicGF0aCI6Ii8xNDMwMDg3MzYvNTQwNjI1MTI3LTczNjA3MmQ2LWM4N2UtNGI2MC04NTY0LTc0ODc3MjIzNjYyOC5QTkc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQxNjE5MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNjlkZjc2YTRlYzc3MmNlYjFkYWRlMzdjYmI1ZGJjODcxOTg4Nzc1OTFjMzhjOWZkNDk1YTQ5MWYzODZiMTBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.NzglBiDBvQoLYI-hSTsK0nXUBuQ6AKxs2RiENBkyMOg
Renegade334https://github.com/Renegade334
readlineIssues and PRs related to the built-in readline module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22readline%22
on Feb 11, 2026https://github.com/nodejs/node/issues/61526#event-22690101899
Zohaibarif69https://github.com/Zohaibarif69
on Feb 11, 2026https://github.com/nodejs/node/issues/61526#event-22715051738
readline: fix setupHistoryManager initialization order and stream han…https://github.com/Zohaibarif69/node/commit/45e109687ede04daf17df73740f17949e911b6b1
https://docs.github.com/articles/closing-issues-via-commit-messages
45e1096https://github.com/Zohaibarif69/node/commit/45e109687ede04daf17df73740f17949e911b6b1
Zohaibarif69https://github.com/Zohaibarif69
on Feb 21, 2026https://github.com/nodejs/node/issues/61526#event-22969226694
readline: fix history manager property propagationhttps://github.com/Zohaibarif69/node/commit/44465a6a359613bc3c353edd23e3165da04bfb83
https://docs.github.com/articles/closing-issues-via-commit-messages
44465a6https://github.com/Zohaibarif69/node/commit/44465a6a359613bc3c353edd23e3165da04bfb83
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jul 20, 2026https://github.com/nodejs/node/issues/61526#issuecomment-5019614846
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Jul 20, 2026https://github.com/nodejs/node/issues/61526#event-28198526655
avivkellerhttps://github.com/avivkeller
not plannedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 9, 2026https://github.com/nodejs/node/issues/61526#event-29170968652
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/61526
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/61526
readlineIssues and PRs related to the built-in readline module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22readline%22
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.