Repository navigation
Model TypeScript primitive string conversion and padding - #677
Open
CaelmBleidd wants to merge 2 commits into
Open
CaelmBleidd wants to merge 2 commits into
CaelmBleidd wants to merge 2 commits into
Conversation
CaelmBleidd
changed the base branch from
main
to
caelmbleidd/ts-object-own-properties
December 4, 2026 02:07
CaelmBleidd
force-pushed
the
caelmbleidd/ts-primitive-string-method-models
branch
from
December 4, 2026 02:26
379c944 to
8549028
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.
Summary
toString()for backed strings and numbers. The numeric model handles concrete decimal conversion, symbolic safe integers in radix 10 or 16, and the ECMAScript spellings of NaN and infinities for the supported radices.String.prototype.padStart()over UTF-16 code units for supported primitive inputs. Padding is materialized up to 64 code units. Existing unknown-call fallback handles the remainder.Verification
The four focused tests and 16 catalog tests passed with JDK 21 and Node 22. Both TypeScript Detekt tasks passed. The focused tests check symbolic decimal and hexadecimal formatting, UTF-16 padding, project method dispatch, the radix-36 fallback, and Node execution of the same source contract.
Dependency
This pull request is based on #671. The pull request diff contains the primitive string changes.