René's URL Explorer Experiment


Title: Thrown AbortErrors are not DOMExceptions · Issue #40692 · nodejs/node · GitHub

Open Graph Title: Thrown AbortErrors are not DOMExceptions · Issue #40692 · nodejs/node

X Title: Thrown AbortErrors are not DOMExceptions · Issue #40692 · nodejs/node

Description: Version v17.0.1 Platform any Subsystem No response What steps will reproduce the bug? import { readFile } from 'fs/promises'; const ref = new DOMException('The operation was aborted', 'AbortError'); console.log('REF INSTANCE', ref instan...

Open Graph Description: Version v17.0.1 Platform any Subsystem No response What steps will reproduce the bug? import { readFile } from 'fs/promises'; const ref = new DOMException('The operation was aborted', 'AbortError')...

X Description: Version v17.0.1 Platform any Subsystem No response What steps will reproduce the bug? import { readFile } from 'fs/promises'; const ref = new DOMException('The operation was aborted'...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Thrown AbortErrors are not DOMExceptions","articleBody":"### Version\n\nv17.0.1\n\n### Platform\n\nany\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```js\r\nimport { readFile } from 'fs/promises';\r\n\r\nconst ref = new DOMException('The operation was aborted', 'AbortError');\r\nconsole.log('REF INSTANCE', ref instanceof DOMException);\r\nconsole.log('REF OBJECT', ref);\r\n\r\nconst ab = new AbortController();\r\nab.abort();\r\n\r\ntry {\r\n    await readFile('does_not_matter', { signal: ab.signal });\r\n}\r\ncatch (err) {\r\n    console.log('ERR INSTANCE', err instanceof DOMException);\r\n    console.log('ERR OBJECT', err);\r\n}\r\n```\n\n### How often does it reproduce? Is there a required condition?\n\n100%, including for all other native APIs that supports signals.\n\n### What is the expected behavior?\n\nFrom the docs:\r\n\r\n> If a request is aborted the promise returned is rejected with an `AbortError`\r\n\r\nThere is no mention that this is a non-standard `new DOMException(message, 'AbortError')` error. As such, I expect 'REF' and 'ERR' logged objects to be the same (except the stack).\n\n### What do you see instead?\n\n```\r\nREF INSTANCE true\r\nREF OBJECT DOMException [AbortError]: The operation was aborted\r\n    at file://\u003csnip>/fail.mjs:3:13\r\n    at ModuleJob.run (node:internal/modules/esm/module_job:185:25)\r\n    at async Promise.all (index 0)\r\n    at async ESMLoader.import (node:internal/modules/esm/loader:281:24)\r\n    at async loadESM (node:internal/process/esm_loader:88:5)\r\n    at async handleMainPromise (node:internal/modules/run_main:65:12)\r\nERR INSTANCE false\r\nERR OBJECT AbortError: The operation was aborted\r\n    at checkAborted (node:internal/fs/promises:373:11)\r\n    at readFile (node:internal/fs/promises:845:3)\r\n    at file://\u003csnip>/fail.mjs:11:11\r\n    at ModuleJob.run (node:internal/modules/esm/module_job:185:25)\r\n    at async Promise.all (index 0)\r\n    at async ESMLoader.import (node:internal/modules/esm/loader:281:24)\r\n    at async loadESM (node:internal/process/esm_loader:88:5)\r\n    at async handleMainPromise (node:internal/modules/run_main:65:12) {\r\n  code: 'ABORT_ERR'\r\n}\r\n```\n\n### Additional information\n\nThis is only an issue in node 17+, since previous versions did not have a `DOMException` global.","author":{"url":"https://github.com/kanongil","@type":"Person","name":"kanongil"},"datePublished":"2021-11-01T13:56:23Z","url":"https://github.com/nodejs/node/issues/40692"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5d00c8f7-ac28-b4da-0983-5b4e33c7041d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD404:34E7AF:8616E2:AF7BDA:6AED38FC
html-safe-nonce57d44428cdc982e8019ac29a6e0f2e40f6a386f5a08d3f6457b443bf9e5fc3fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDA0OjM0RTdBRjo4NjE2RTI6QUY3QkRBOjZBRUQzOEZDIiwidmlzaXRvcl9pZCI6IjI1NDY3MjMwOTA3MDc4NTU2MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3eefaef6b85900726be5b5b49904cfb2846204405cf935956cf988e125496634
hovercard-subject-tagissue:1041201333
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/40692/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9cba79120f5b492e02a9992e7580f6db19acfa9ef7e296d6b4d39a1eaba2a3f6/nodejs/node/issues/40692
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9cba79120f5b492e02a9992e7580f6db19acfa9ef7e296d6b4d39a1eaba2a3f6/nodejs/node/issues/40692
og:image:altVersion v17.0.1 Platform any Subsystem No response What steps will reproduce the bug? import { readFile } from 'fs/promises'; const ref = new DOMException('The operation was aborted', 'AbortError')...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekanongil
hostnamegithub.com
expected-hostnamegithub.com
None26c92a9388ddfad3fa88d132b5d5f0b4747030233dcc4e5efb05f1cbae152184
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
releasec629ad99c254d306375fc8354d04321c2c362236
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/40692#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F40692
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%2F40692
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/40692
Reloadhttps://github.com/nodejs/node/issues/40692
Reloadhttps://github.com/nodejs/node/issues/40692
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)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/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/40692
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/40692
Thrown AbortErrors are not DOMExceptionshttps://github.com/nodejs/node/issues/40692#top
errorsIssues and PRs related to JavaScript errors originating in Node.js core.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22errors%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/kanongil
kanongilhttps://github.com/kanongil
on Nov 1, 2021https://github.com/nodejs/node/issues/40692#issue-1041201333
Nexthttps://github.com/nodejs/node/issues/40692?timeline_page=1
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Nov 1, 2021https://github.com/nodejs/node/issues/40692#issuecomment-956658594
#36084https://github.com/nodejs/node/issues/36084
https://github.com/kanongil
kanongilhttps://github.com/kanongil
on Nov 2, 2021https://github.com/nodejs/node/issues/40692#issuecomment-957179151
@benjamingrhttps://github.com/benjamingr
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Nov 2, 2021https://github.com/nodejs/node/issues/40692#issuecomment-957345896
@benjamingrhttps://github.com/benjamingr
https://github.com/kanongil
kanongilhttps://github.com/kanongil
on Nov 2, 2021https://github.com/nodejs/node/issues/40692#issuecomment-957750223
e4b1fb5https://github.com/nodejs/node/commit/e4b1fb5e6422c1ff151234bb9de792d45dd88d87
#39098https://github.com/nodejs/node/issues/39098
#39176https://github.com/nodejs/node/pull/39176
#36084https://github.com/nodejs/node/issues/36084
#38361https://github.com/nodejs/node/issues/38361
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Nov 2, 2021https://github.com/nodejs/node/issues/40692#issuecomment-957960452
e4b1fb5https://github.com/nodejs/node/commit/e4b1fb5e6422c1ff151234bb9de792d45dd88d87
#39098https://github.com/nodejs/node/issues/39098
#39176https://github.com/nodejs/node/pull/39176
#36084https://github.com/nodejs/node/issues/36084
thishttps://github.com/nodejs/node/pull/36048/files#diff-670bf55805b781d9a3579f8bca9104c04d94af87cc33220149fd7d37b095ca1cR730-R732
@mcollinahttps://github.com/mcollina
#38361https://github.com/nodejs/node/issues/38361
https://github.com/mcollina
mcollinahttps://github.com/mcollina
on Nov 2, 2021https://github.com/nodejs/node/issues/40692#issuecomment-958022576
@benjamingrhttps://github.com/benjamingr
https://github.com/kanongil
kanongilhttps://github.com/kanongil
on Nov 2, 2021https://github.com/nodejs/node/issues/40692#issuecomment-958132989
like thishttps://github.com/nodejs/node/blob/dd52c05046bcc65746e26e2de65699dffcd454ee/lib/internal/fs/promises.js#L371-L374
somethinghttps://github.com/nodejs/node/blob/2eeb4e1d944b4ebebcf80261d9250bc86eadc89a/lib/timers/promises.js#L27-L32
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Nov 2, 2021https://github.com/nodejs/node/issues/40692#issuecomment-958223207
targoshttps://github.com/targos
errorsIssues and PRs related to JavaScript errors originating in Node.js core.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22errors%22
on Nov 6, 2021https://github.com/nodejs/node/issues/40692#event-5577820264
https://github.com/domenic
domenichttps://github.com/domenic
on Nov 11, 2021https://github.com/nodejs/node/issues/40692#issuecomment-966604044
@kanongilhttps://github.com/kanongil
https://github.com/ljharb
ljharbhttps://github.com/ljharb
on Nov 11, 2021https://github.com/nodejs/node/issues/40692#issuecomment-966627702
https://github.com/domenic
domenichttps://github.com/domenic
on Nov 11, 2021https://github.com/nodejs/node/issues/40692#issuecomment-966634085
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Nov 12, 2021https://github.com/nodejs/node/issues/40692#issuecomment-966966344
@domenichttps://github.com/domenic
@ljharbhttps://github.com/ljharb
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Nov 12, 2021https://github.com/nodejs/node/issues/40692#issuecomment-966972007
@domenichttps://github.com/domenic
@jakearchibaldhttps://github.com/jakearchibald
https://github.com/ljharb
ljharbhttps://github.com/ljharb
on Nov 12, 2021https://github.com/nodejs/node/issues/40692#issuecomment-967338161
@benjamingrhttps://github.com/benjamingr
https://github.com/Jamesernator
Jamesernatorhttps://github.com/Jamesernator
on Jun 18, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1596189192
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Jun 19, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1597569585
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Jun 19, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1597573579
@domenichttps://github.com/domenic
@Jamesernatorhttps://github.com/Jamesernator
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Jun 19, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1597582301
@mcollinahttps://github.com/mcollina
@ronaghttps://github.com/ronag
https://github.com/Jamesernator
Jamesernatorhttps://github.com/Jamesernator
on Jun 19, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1597774215
https://github.com/Jamesernator
Jamesernatorhttps://github.com/Jamesernator
on Jun 19, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1597788845
mdn docs recommend ithttps://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/throwIfAborted#implementing_an_abortable_api
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Jun 20, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1599569262
@Jamesernatorhttps://github.com/Jamesernator
https://github.com/Jamesernator
Jamesernatorhttps://github.com/Jamesernator
on Jun 20, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1599680652
with my earlier examplehttps://github.com/nodejs/node/issues/40692#issuecomment-1595855388
specifically avoid the event behaviourhttps://dom.spec.whatwg.org/#abortsignal-add
https://github.com/benjamingr
benjamingrhttps://github.com/benjamingr
on Jun 21, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1601683984
@Jamesernatorhttps://github.com/Jamesernator
not sure how to get the datahttps://github.com/nodejs/node/issues/40692#issuecomment-1597582301
specifically avoid the event behaviourhttps://dom.spec.whatwg.org/#abortsignal-add
whatwg/dom#1195https://github.com/whatwg/dom/issues/1195
https://github.com/mcollina
mcollinahttps://github.com/mcollina
on Jun 29, 2023https://github.com/nodejs/node/issues/40692#issuecomment-1613296143
https://github.com/tilgovi
tilgovihttps://github.com/tilgovi
on Oct 22, 2024https://github.com/nodejs/node/issues/40692#issuecomment-2430501453
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jun 26, 2026https://github.com/nodejs/node/issues/40692#issuecomment-4805719809
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 Jun 26, 2026https://github.com/nodejs/node/issues/40692#event-27227475216
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jul 27, 2026https://github.com/nodejs/node/issues/40692#issuecomment-5086473439
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jul 27, 2026https://github.com/nodejs/node/issues/40692#event-28512817770
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/40692
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/40692
errorsIssues and PRs related to JavaScript errors originating in Node.js core.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22errors%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.