call
needs a value, but the JavaScript function does not return a value, so call
keeps calling the function, expecting a value.
It shouldn't loop; it should error.
Although, @jens, when I clicked "result pic..." it downloaded two identical pictures, which is weird. It does it for any command, not just WAIT. (Well, not REPORT.)
when errors happen errors happen
alert
is modal
It seems that the behavior is different with a Snap! command/script and a JavaScript function.
With a JavaScript function that doesn't return a value or returns undefined
:
if call
is isolated, it doesn't report anything
else if call
is in an input to a block, it keeps getting called.