Skip to content

StringTools fastCodeAt make the default case fall back to using String charCodeAt#12988

Open
PXshadow wants to merge 2 commits into
HaxeFoundation:developmentfrom
PXshadow:development
Open

StringTools fastCodeAt make the default case fall back to using String charCodeAt#12988
PXshadow wants to merge 2 commits into
HaxeFoundation:developmentfrom
PXshadow:development

Conversation

@PXshadow

@PXshadow PXshadow commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

This fixes an issue where a target not yet defined in the conditionals for StringTools.fastCodeAt, can still compile by using String charCodeAt.

@mikaib

mikaib commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Very cool!

@kLabz

kLabz commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

There's likely at least one target that should still be using s.cca

@PXshadow

Copy link
Copy Markdown
Contributor Author

@kLabz Good catch, went through the compiler target list and added the 2 remaining targets to use the fast case (did not add c# because it's gone)

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.

3 participants