René's URL Explorer Experiment


Title: stream: improve handling of falsy errors in stream/iter by jasnell · Pull Request #65864 · nodejs/node · GitHub

Open Graph Title: stream: improve handling of falsy errors in stream/iter by jasnell · Pull Request #65864 · nodejs/node

X Title: stream: improve handling of falsy errors in stream/iter by jasnell · Pull Request #65864 · nodejs/node

Description: Preserves arbitrary failure and cancellation reasons, including falsy values such as undefined, null, false, 0, and ''. Distinguishes omitted cancellation reasons from explicitly passed undefined. Removes internal coercion of non-Error reasons. Wraps non-Error values only at classic stream boundaries, retaining the original value in error.reason. Improves pending write/end cleanup for file, QUIC, broadcast, push, share, and classic stream writers. Ensures terminal writer errors take precedence over per-operation abort signals. Adds extensive reason-propagation and lifecycle tests. Updates stream/iter documentation accordingly.

Open Graph Description: Preserves arbitrary failure and cancellation reasons, including falsy values such as undefined, null, false, 0, and ''. Distinguishes omitted cancellation reasons from explicitly passed und...

X Description: Preserves arbitrary failure and cancellation reasons, including falsy values such as undefined, null, false, 0, and ''. Distinguishes omitted cancellation reasons from explicitly pa...

Opengraph URL: https://github.com/nodejs/node/pull/65864

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:5fd71e6b-45e6-94c1-00b0-5caaecb7b81d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8AAC:1FB53E:5A3E36:7859EF:6AEDBCD2
html-safe-nonce5b6a6262222a10f0e7b5fb5db19412fb34b57366b3b0f572bf216ff9acfb701e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUFDOjFGQjUzRTo1QTNFMzY6Nzg1OUVGOjZBRURCQ0QyIiwidmlzaXRvcl9pZCI6IjU4MzQ1MTE4ODQyNTY5MTg3MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac32bc325fb73c6157a07b1e51c5c0a59f0e9faefeae4ee92eb46933954336f69f
hovercard-subject-tagpull_request:4458185444
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
twitter:imagehttps://avatars.githubusercontent.com/u/439929?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/439929?s=400&v=4
og:image:altPreserves arbitrary failure and cancellation reasons, including falsy values such as undefined, null, false, 0, and ''. Distinguishes omitted cancellation reasons from explicitly passed und...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1eb5f7cedbc707472687eab1a30e6c4619c00791815622ceaba9694eb161930f
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef31f9c89203c022acdb651c34ae048cf41764208
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F65864%2Fcommits%2Ffdbfc173bf615dd5c6d9781382aaf8270f8694eb
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%2Fpull%2F65864%2Fcommits%2Ffdbfc173bf615dd5c6d9781382aaf8270f8694eb
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
Reloadhttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
Reloadhttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues654 (654)https://github.com/nodejs/node/issues
Pull requests664 (664)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/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
jasnell:jasnell/stream-iter-fixes-3https://github.com/jasnell/node/tree/jasnell/stream-iter-fixes-3
Conversation 6 https://github.com/nodejs/node/pull/65864
Commits 1 https://github.com/nodejs/node/pull/65864/commits
Checks 43 https://github.com/nodejs/node/pull/65864/checks
Files changed https://github.com/nodejs/node/pull/65864/files
Please reload this pagehttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
stream: improve handling of falsy errors in stream/iter https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#top
Show all changes 1 commit https://github.com/nodejs/node/pull/65864/files
fdbfc17 stream: improve handling of falsy errors in stream/iter jasnell Aug 30, 2026 https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
Clear filters https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
Please reload this pagehttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
Please reload this pagehttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
stream_iter.md https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
abort_controller.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-03bd4f07a1006cb0daaddced702858751b20f5ab7681cb0719c1b1d80d6ca05c
promises.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-408a6d8eb0a23c586754d4f3af46c8b1927a32d80a6bdfd3bbd87c0f2a012b1a
quic.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-fc474b478fdfef6d22a506b073f383e6180acec899fbab6e00fc0a095eaa7146
broadcast.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-3c3b3eb3fc844b33761f7d97032a6b2c580497aa5f6069f0e8a659e99c889e1c
classic.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-8de86b5a2b1f0eb4b2aa34631aa13e3cd949b5ef7b9ad6029c7b54bdfebc1a39
pull.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-f124e8696161bf90c965ba68b5e10f592ecca907ff4ec6e611a6b762db30d710
push.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-df19d90f1ff5d68c5be20e0510aa6322f174a51bececf2d0c57c12cf59e10cb4
share.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-cbbd247e6f3d7186a7d7d21fa07bac75435e6eceb14eac213e815e45f0669731
transform.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-8507693b60776fc8bb5aaa5fca787584cbbfa3477e2aeed73384bc5f69cd7489
utils.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-696e84a9f8c71a0c64891d3530cc37b218b446ac92bded67c1ccf266aad7d846
test-fs-promises-file-handle-pull.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-f0f479e07fb7e28ff83d6d077c7ec88498d5940db86bd32d8f45cd5ec6d217f0
test-fs-promises-file-handle-writer.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-463bf23334c3c927de88d18a036e173bbac01ce12b40adc40865923d1a8bd1ff
test-quic-stream-writer-api.mjs https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-59c67d7d5406902316fec3eeb41514f8e096d87ea279d0fc332f945baea8ddf9
test-stream-iter-broadcast-backpressure.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-2de785c0b4933b327c0a72e224018f37c8b726ac573ae8f90dc3f1a9f2ec9e65
test-stream-iter-reason-propagation.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-b9f5d482edd6150ce2860db5540ecac572d7b9bf05e196c020ca7fc77346e5f2
test-stream-iter-share-coverage.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-e9702b6438aa55efa5c43bb64806271273f5ad615179a2d113ce8a510867178e
test-stream-iter-to-readable.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-040b928815358d49082a0b7da8e350d09e64c2aa0eaf6098f68795b07f67c62f
test-stream-iter-writable-from.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-98e9d3782faf5827b9d50b6115b5520b1e9b96dcba1afc7a7afc0d55cf051c6f
test-stream-iter-writable-interop.js https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-daa9664a3288b6ecbbabd26b6f1cb1825039d5373b311fb44b3660d47879bbd6
Please reload this pagehttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
https://github.com/jasnell
jasnellhttps://github.com/nodejs/node/commits?author=jasnell
doc/api/stream_iter.mdhttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
View file https://github.com/jasnell/node/blob/fdbfc173bf615dd5c6d9781382aaf8270f8694eb/doc/api/stream_iter.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/65864/commits/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-ba5b3b1e71a502eb9721179d2f41091969fa66f0f07a0fd40caec49a45d9f8ae
lib/internal/abort_controller.jshttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-03bd4f07a1006cb0daaddced702858751b20f5ab7681cb0719c1b1d80d6ca05c
View file https://github.com/jasnell/node/blob/fdbfc173bf615dd5c6d9781382aaf8270f8694eb/lib/internal/abort_controller.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/65864/commits/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-03bd4f07a1006cb0daaddced702858751b20f5ab7681cb0719c1b1d80d6ca05c
https://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb#diff-03bd4f07a1006cb0daaddced702858751b20f5ab7681cb0719c1b1d80d6ca05c
Please reload this pagehttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
Please reload this pagehttps://github.com/nodejs/node/pull/65864/commits/fdbfc173bf615dd5c6d9781382aaf8270f8694eb
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.