Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Uncaught ReferenceError: loopProtect is not defined #635

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

Closed
REAS opened this issue May 14, 2018 · 2 comments
Closed

Uncaught ReferenceError: loopProtect is not defined #635

REAS opened this issue May 14, 2018 · 2 comments

Comments

@REAS
Copy link
Member

REAS commented May 14, 2018

In the alpha editor, a for loop is generating the error "Uncaught ReferenceError: loopProtect is not defined". We confirmed this behavior on two machines, both OS X. I was able to test multiple examples, and examples with multiple loops were working (see, the "Iteration" on the p5.js site), but when that example was modified to have a single loop, the error returned. Here's an example to test:

function setup() {
  createCanvas(720, 360);
}

function draw() {
  for (var i = 0; i < 10; i++) {
    rect(50, i * 10, 475, 10);
  }
}
@catarak
Copy link
Member

catarak commented May 14, 2018

this is also being reported in #633. will investigate!

@REAS
Copy link
Member Author

REAS commented May 15, 2018

Thank you @catarak. I confirm the for is working again.

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

No branches or pull requests

2 participants