Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with ternary transpile for indexed set #1357

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

TwitchBronBron
Copy link
Member

Fixes #1356 .

The issue was that we were only checking if the parent of the ternaryExpression was an IndexedSet, but we currently only support lifting the VALUE of those expressions, not their indexes. So this now guards against matching on the indexes.

@TwitchBronBron TwitchBronBron added the create-package create a temporary npm package on every commit label Nov 26, 2024
@rokucommunity-bot
Copy link

Hey there! I just built a new temporary npm package based on 847b35c. You can download it here or install it by running the following command:

npm install https://github.com/rokucommunity/brighterscript/releases/download/v0.0.0-packages/brighterscript-0.68.0-fix-ternary-transpile-for-indexed-set.20241126200919.tgz

Co-authored-by: Luis Jacobetty Soares <57358121+luis-soares-sky@users.noreply.github.com>
@rokucommunity-bot
Copy link

Hey there! I just built a new temporary npm package based on 171ec1f. You can download it here or install it by running the following command:

npm install https://github.com/rokucommunity/brighterscript/releases/download/v0.0.0-packages/brighterscript-0.68.0-fix-ternary-transpile-for-indexed-set.20241126203750.tgz

@TwitchBronBron TwitchBronBron merged commit 9960a47 into master Nov 26, 2024
6 checks passed
@TwitchBronBron TwitchBronBron deleted the fix-ternary-transpile-for-indexed-set branch November 26, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-package create a temporary npm package on every commit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ternaries don't work properly when used within an IndexedGetExpression's index
2 participants