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
Not sure if this is happening in every level, I experienced it in level 13 RobotMaze:
Whenever I use a while loop, I get an ReferenceError: dummy is not defined
ReferenceError: dummy is not defined
Minimal failing example:
var i = 5; while (i--) {}
I tracked it down to https://github.com/AlexNisnevich/untrusted/blob/master/scripts/validate.js#L39 I believe it needs a var.
var
Global variables are apparently not allowed, this code fails with ReferenceError: i is not defined:
ReferenceError: i is not defined
i = 5;
When I put a var dummy; somewhere in my code it complains about one more variable - startTime, but then with var dummy, startTime; it works fine.
var dummy;
startTime
var dummy, startTime;
Passing:
var dummy, startTime; var i = 5; while (i--) {}
Confirmed same behavior also on the BFS solution from Yuval (well that one needs one more var in front of new_moves).
new_moves
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not sure if this is happening in every level, I experienced it in level 13 RobotMaze:
Whenever I use a while loop, I get an
ReferenceError: dummy is not defined
Minimal failing example:
I tracked it down to https://github.com/AlexNisnevich/untrusted/blob/master/scripts/validate.js#L39 I believe it needs a
var
.Global variables are apparently not allowed, this code fails with
ReferenceError: i is not defined
:When I put a
var dummy;
somewhere in my code it complains about one more variable -startTime
, but then withvar dummy, startTime;
it works fine.Passing:
Confirmed same behavior also on the BFS solution from Yuval (well that one needs one more
var
in front ofnew_moves
).The text was updated successfully, but these errors were encountered: