[TS] Make empty strings falsy in symbolic conditions - #456
Open
CaelmBleidd wants to merge 1 commit into
Open
CaelmBleidd wants to merge 1 commit into
CaelmBleidd wants to merge 1 commit into
Conversation
CaelmBleidd
marked this pull request as ready for review
October 2, 2026 21:36
CaelmBleidd
marked this pull request as draft
October 2, 2026 22:18
CaelmBleidd
force-pushed
the
caelmbleidd/ts-423-string-truthiness
branch
from
October 2, 2026 22:25
38041dd to
b57c27f
Compare
CaelmBleidd
changed the base branch from
caelmbleidd/ts-421-symbolic-string
to
caelmbleidd/ts-422-string-value-equality
October 2, 2026 22:25
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-423-string-truthiness
branch
from
October 3, 2026 05:26
2c08f04 to
9d511c1
Compare
CaelmBleidd
marked this pull request as ready for review
October 3, 2026 06:43
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-423-string-truthiness
branch
from
October 5, 2026 13:09
7fe2676 to
f2a22c3
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.
Fixes #423.
Empty strings now evaluate to false in conditions,
!,&&, and||; nonempty strings and ordinary objects remain truthy. Uniquely typed string fields receive bounded UTF-16 contents, literal field types preserve exact code units, and reads preserve prior writes. Dynamic string references without modeled contents produce an explicit unsupported outcome while supported nonstring paths continue.This version contains only #456's changes on top of merged #455 at
2c4f17c4c9fc0d70057e374ec462600a0d9c4bbf. Both new backing readers use the privatemkStringBackingLValue. Regression tests follow the currentdiscoverPropertiesstructure and replay generated inputs in Node.js. The guarded-any test now requires the replayable strings provided by #455 instead of expecting a missing-backing extraction failure.Validation on head
f2a22c368c515e3591c8f5f0fd02a1be19eedf23, using published pinned JacoDB without substitution::usvm-ts:test: 988 passed, 142 skipped, 0 failures/errors.:usvm-ts-calls:test: 13 passed, 0 skipped/failures/errors.:usvm-ts:detektMain,:usvm-ts:detektTest, andgit diff --check: passed.The model remains bounded by
TsOptions.maxArraySize. Values outside that contract are not evidence of unbounded string support. This review covers directly executed condition operators; source-levelBoolean(...)call resolution was not validated.These are local results. CI for the published replacement head must be checked after publication.