Skip to content

Fix misspelled javascript pragma in PjString>>findString:startingAt: - #1

Merged
noha merged 1 commit into
pharo12from
fix-findString-pragma
Oct 15, 2026
Merged

noha merged 1 commit into
pharo12from
fix-findString-pragma

Conversation

@noha

@noha noha commented Oct 15, 2026

Copy link
Copy Markdown

The method used <javaScript: ...> (capital S). The transpiler only recognizes <javascript: ...>, so the pragma was ignored and the method was transpiled to an empty body returning the receiver. Any caller comparing the result with 0 (e.g. includesSubstring: style checks) therefore always got a wrong answer in JavaScript.

The method used <javaScript: ...> (capital S). The transpiler only
recognizes <javascript: ...>, so the pragma was ignored and the method
was transpiled to an empty body returning the receiver. Any caller
comparing the result with 0 (e.g. includesSubstring: style checks)
therefore always got a wrong answer in JavaScript.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noha
noha merged commit 4897840 into pharo12 Oct 15, 2026
1 check failed
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