| <p>This page tests the evaluated value of a while expression.</p> |
| document.getElementById("console").appendChild(document.createTextNode(s + "\n")); |
| log("PASS: " + a + " should be " + b + " and is."); |
| log("FAIL: " + a + " should be " + b + " but instead is " + evalA + "."); |
| x = eval("while (condition) { condition = false; 1; }"); |
| var x = eval("while (condition) { condition = false; 1; break; }"); |
| var x = eval("while (condition) { condition = false; 1; continue; }"); |
| var x = eval("while (condition) { condition = false; 1; ; }"); |