Skip to content

fix: Final sigma lowering after non-cased chars and Array#fill with o… - #3068

Open
udaykiriti wants to merge 1 commit into
AssemblyScript:mainfrom
udaykiriti:fix/final-sigma-and-fill-negative-start
Open

udaykiriti wants to merge 1 commit into
AssemblyScript:mainfrom
udaykiriti:fix/final-sigma-and-fill-negative-start

Conversation

@udaykiriti

@udaykiriti udaykiriti commented Dec 2, 2026 •

Copy link
Copy Markdown

Fixes #3063.
Also fixes the Array#fill part of #3064 (the super() field-initializer and copyWithin parts are not addressed here).

Changes proposed in this pull request:

…ut-of-range negative start

- isFinalSigma: stop the backward scan at the first cased letter, so a
  preceding space no longer makes "x ΑΣ" lower to "x ασ" (AssemblyScript#3063)
- FILL: compute len + start/end as signed, so a negative start/end beyond
  the length clamps to 0 instead of wrapping and writing out of bounds (AssemblyScript#3064)

This branch has not been deployed

No deployments
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.

String#toLowerCase fails to lower final sigma after a space or non-cased character

1 participant