We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Catching an exception inside of a for-loop can mess with the loop counter.
Example code:
for 0:1 do { try { print("inside"); test(expr()); } catch var ex do { } } print("done"); function expr() { throw "error"; } function test(val) {}
Interestingly, replacing test(expr()); with expr(); changes the behavior back to normal.
test(expr());
expr();
What should happen instead: The loop should terminate.
The text was updated successfully, but these errors were encountered:
41b58ea
No branches or pull requests
Description
Catching an exception inside of a for-loop can mess with the loop counter.
To Reproduce
Example code:
Interestingly, replacing
test(expr());
withexpr();
changes the behavior back to normal.What should happen instead: The loop should terminate.
The text was updated successfully, but these errors were encountered: