Skip to content

docs(design): async origin capture for stackless rejections (BGSVIEWER-14) - #175

Merged
krassx merged 13 commits into
mainfrom
async-origin-design
Nov 3, 2026
Merged

krassx merged 13 commits into
mainfrom
async-origin-design

Conversation

@krassx

@krassx krassx commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Design doc, measurements and probes only: no behaviour change in this PR. The doc has since been corrected against the review findings and brought to its as-built state (it records what #176 built and what real engines taught), so it cites files that exist once #176 has merged. Land #176 first, then this.

BGSVIEWER-14 is an unhandled NotSupportedError: The element has no supported sources. with zero frames. Measured in headless Chromium 156 and Firefox 151 (docs/design/async-origin-capture/probe.mjs): platform promises that fail asynchronously reject with no stack in Chromium (and fewer in Firefox); user-code Error rejections already carry stacks, so the global Promise needs no patching. The doc lists the measured stackless set, the 187 candidate methods from lib.dom.d.ts, a generic call-site wrapper (with the unhandledrejection-preserving derived-promise trap), costs/risks, and a plan.

WebKit was not part of the original measurements; it was run later in the e2e (design doc §12).

🤖 Generated with Claude Code

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

Labels

javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant