Repository navigation
[TS] Evaluate instanceof against runtime constructor values - #464
Open
CaelmBleidd wants to merge 20 commits into
Open
CaelmBleidd wants to merge 20 commits into
CaelmBleidd wants to merge 20 commits into
Conversation
This was referenced Oct 3, 2026
CaelmBleidd
force-pushed
the
caelmbleidd/ts-457-runtime-instanceof
branch
from
October 3, 2026 03:46
d6843cd to
9812a2b
Compare
Implement supported string equality cases and preserve explicit unsupported outcomes for unbacked symbolic witnesses. Reuse shared Node replay tests.
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-457-runtime-instanceof
branch
from
October 3, 2026 05:28
9812a2b to
70847b1
Compare
CaelmBleidd
marked this pull request as ready for review
October 3, 2026 06:44
CaelmBleidd
force-pushed
the
caelmbleidd/ts-457-runtime-instanceof
branch
from
October 3, 2026 22:33
887e7ba to
bab7963
Compare
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
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.
Runtime constructor values now retain their project-class identity through locals, returned values and TypeScript assertions.
instanceofevaluates the actual right-hand constructor and the left-hand object's declared ancestry; represented constructor values also return"function"fromtypeof.Related to #457. This PR is stacked on #455 and requires the new IR from JacoDB #399. The repository's published JacoDB dependency pin is unchanged.
TypeErrorobject for a known non-callable right operand.Symbol.hasInstance, and constructor-valued entrypoint inputs as explicit unsupported outcomes. Inspect nested types and inherited fields conservatively; superclass generic specialization remains limited by JacoDB [TS PBT] Search bounded generator choices while preserving dependent input structure #400.discoverPropertiesand invariants. Retain the direct machine API for unsupported outcomes, exception objects, stop reasons and generated Node replay cases.TsTestResolvercurrently rejects an unresolved inherited field sort for that input.Current head:
bab79630bbf10cb08559ce1410cf69c1e3c2601e. Parent: #455 ate5527a3b67f476045aebea61a66bdc6e93c7b965. The production patch is unchanged by the test-style update and rebase.Final combined stack at #466
acb1283d458d979a775dee8818d7ec5d1a29ba0f: 20RuntimeInstanceofTest, 12RuntimeNewTestand 6TsStringEqualityTestcases passed, with no skips, failures or errors.:usvm-ts:detektTestandgit diff --checkpassed. These local checks used the frozen JacoDB #399 commitb5e10a1a0c5d279492c373caf907f6387fff998fthrough-PuseLocalJacodb=/private/tmp/jacodb-ts-398-build.Prototype mutation, unknown/function-object identities and custom
Symbol.hasInstanceremain outside the supported model. Catching the terminalTypeErrorinside the analyzed program requires the separate catch-routing change. CI with the older JacoDB artifact cannot validate the new IR dependency.