Skip to content

For Scope Fix#413

Merged
Perryvw merged 1 commit intomasterfrom
for-scope-fix
Feb 17, 2019
Merged

For Scope Fix#413
Perryvw merged 1 commit intomasterfrom
for-scope-fix

Conversation

@tomblind
Copy link
Copy Markdown
Collaborator

There's a scoping issue with for loops:

let i = 42;
for (let i = 0; i < 10; ++i) {}
print(i); // Should print 42, but prints 10

This is now fixed by wrapping the produces statements in a do...end block.

@Perryvw Perryvw merged commit 9400a6d into master Feb 17, 2019
@Perryvw Perryvw deleted the for-scope-fix branch February 17, 2019 14:10
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.

2 participants