Skip to content

fix(ERR-01): preserve raise and await source origins - #35

Merged
ellainng merged 1 commit into
mainfrom
fix/ERR-01-raised-source-spans
Oct 20, 2026
Merged

ellainng merged 1 commit into
mainfrom
fix/ERR-01-raised-source-spans

Conversation

@ellainng

Copy link
Copy Markdown
Member

Preconstructed exceptions now report their actual raise statement instead of their constructor. An exception rejected as a Promise value receives its first source-await origin; runtime/callback errors already raised retain their origin during propagation. Exception identity/message are preserved, and native explicit-raise tracebacks map back to the raise statement.

Validation: all 80 compiler/compatibility tests passed, including CPython differential raise/rejection/callback origins, shared-module errors, identity and native source-map traceback tests. Real Chrome 152 passed 13 integration checks, including preconstructed raise/rejection origins alongside the existing callback, Fetch, lifecycle, cancellation and example checks. Built wheel/source artifacts successfully. No runtime dependency or release change.

Closes #34.

@ellainng
ellainng merged commit 4c24485 into main Oct 20, 2026
4 checks passed
@ellainng
ellainng deleted the fix/ERR-01-raised-source-spans branch October 20, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERR-01: Preserve raised exception source locations

1 participant