Repository navigation
[TS] Route thrown exceptions into catch blocks - #463
Merged
Merged
Conversation
CaelmBleidd
force-pushed
the
caelmbleidd/ts-422-string-value-equality
branch
from
October 3, 2026 05:21
7927e93 to
127ecb5
Compare
CaelmBleidd
force-pushed
the
caelmbleidd/ts-427-catch-routing
branch
from
October 3, 2026 05:28
e0bc56a to
2d655b8
Compare
CaelmBleidd
marked this pull request as ready for review
October 3, 2026 06:44
CaelmBleidd
force-pushed
the
caelmbleidd/ts-422-string-value-equality
branch
from
October 4, 2026 19:51
e5527a3 to
7217c2a
Compare
Base automatically changed from
caelmbleidd/ts-422-string-value-equality
to
main
October 5, 2026 12:37
CaelmBleidd
force-pushed
the
caelmbleidd/ts-427-catch-routing
branch
from
October 10, 2026 17:07
f289903 to
085fbd0
Compare
Keep catch witness assertions and use the shared Node process harness.
CaelmBleidd
force-pushed
the
caelmbleidd/ts-427-catch-routing
branch
from
October 11, 2026 16:36
f1d168e to
2ee680c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thrown TypeScript values now enter the nearest catch handler and remain available to its binding. Without a handler, the interpreter unwinds to the caller and checks the call site. An unresolved throw expression no longer becomes an invented undefined exception.
Closes #427.
Implementation
EtsCaughtExceptionRef, retain the current stack frame until catch processing, and preserve the caught value when cloning a symbolic state.finallyis tracked separately.Based on
mainat4983b75f9b783c607ebfc3b43fb201937a012b20, using its JacoDBbcad76ffd7dependency. The diff contains 6 files, +244/-33.Validation
usvm-tstests passed, covering catch routing with Node.js replay, exceptions, import/export resolution, captured method calls, named function bindings, and named function imports.usvm-ts-callstests passed.:usvm-ts:detektMain,:usvm-ts:detektTest, andgit diff --checkpassed.c1baf80562f6e49531bcd74f672fac0e068ca966; the final head2ee680c6df80e979a6961d66b963e4310979f554adds only the two JVM files from the latest base commit. All tested TypeScript modules, their dependencies, and build configuration are byte-identical between these heads.Full GitHub CI is separate from the local checks above.