Skip to content

Fix stateless nested loops in p5.strands - #9433

Open
bhabishnu wants to merge 1 commit into
processing:mainfrom
bhabishnu:fix/strands-nested-loop-capture
Open

bhabishnu wants to merge 1 commit into
processing:mainfrom
bhabishnu:fix/strands-nested-loop-capture

Conversation

@bhabishnu

Copy link
Copy Markdown
Contributor

Resolves #9426

Changes:

  • Handles bare strandsFor() calls so their internal loop variable isn't captured by the surrounding block.
  • Adds regression tests for stateless loops nested inside a conditional and another loop.

PR Checklist

  • npm run lint passes
  • Inline reference is included / updated
  • Unit tests are included / updated

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.

p5.strands nested loops can throw loopVar0 is not defined

1 participant