Skip to content

Model TypeScript primitive string conversion and padding - #677

Open
CaelmBleidd wants to merge 2 commits into
caelmbleidd/ts-object-own-propertiesfrom
caelmbleidd/ts-primitive-string-method-models
Open

CaelmBleidd wants to merge 2 commits into
caelmbleidd/ts-object-own-propertiesfrom
caelmbleidd/ts-primitive-string-method-models

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Model primitive 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.
  • Model 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.
  • Preserve project-defined method dispatch.

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.

@CaelmBleidd
CaelmBleidd changed the base branch from main to caelmbleidd/ts-object-own-properties December 4, 2026 02:07
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