You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following test fails because s is "134" instead of "1234" at end of loop:
asyncTest("do while", 1, function(_) {
var i = 0;
function read(_) {
return delay(_, ++i);
}
var s = "";
var v = read(_);
do {
s += v;
} while ((v = read(_)) < 5);
strictEqual(s, "1234");
start();
});
The text was updated successfully, but these errors were encountered:
Following test fails because s is "134" instead of "1234" at end of loop:
The text was updated successfully, but these errors were encountered: