Skip to content

[TS] Resolve symbolic array-field length with runtime storage - #692

Open
CaelmBleidd wants to merge 2 commits into
caelmbleidd/ts-boxed-string-indexingfrom
caelmbleidd/ts-symbolic-array-field-length
Open

CaelmBleidd wants to merge 2 commits into
caelmbleidd/ts-boxed-string-indexingfrom
caelmbleidd/ts-symbolic-array-field-length

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Resolve runtime storage for .length on a symbolic input field whose local has an array type and whose backing storage is still undetermined. A local alias of the field follows the same path. Direct array parameters continue to use the storage selected at entry.
  • Read arrays from their runtime backing region, materialize primitive strings through the existing UTF-16 backing, and read ordinary object properties with presence semantics. Report an unresolved runtime type as an explicit limitation.
  • Exercise the field through a local variable in the Calls candidate journal and the normal saved-input replay. The original reduced fixture on [TS] Preserve sparse array witnesses during saved input replay #640 predicted a return in symbolic execution and threw in Node.js.

Verification

The first revision also dispatched on direct unknown[] parameters. It failed eight cases of TsArrayShiftReplayTest before the CI run was stopped. The narrowed revision passed all 129 tests in that suite and the Calls replay regression for the field alias.

The full local TS, TS dataflow, and Calls checks passed with Node.js 22. Across those modules, 1,931 tests passed and 172 were skipped. The final head passed all seven GitHub checks. CI run

@CaelmBleidd
CaelmBleidd marked this pull request as ready for review December 4, 2026 06:25
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.

1 participant