-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪲 Escape internal var used in repeat (#5256)
Fixes #5255 The internal variable `i` used in repeat statements is now escaped with the `__` prefix, so that it does not show in the output window. **How to test** - Run Hedy locally and run the following snippets for the specified levels. Ensure that the `i` variable does not appear in the blue variables list in the upper right corner of the output window: Level 7: ``` options is 1, 2, 3, 4, 5 repeat 5 times print options at random ``` Level 8: ``` options is 1, 2, 3, 4, 5 repeat 5 times print options at random ```
- Loading branch information
1 parent
6588f1f
commit 5e5ee55
Showing
5 changed files
with
72 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.