1 <p>This page tests the evaluated value of a do-while expression.
</p>
2 <pre id=
"console"></pre>
6 testRunner
.dumpAsText();
10 document
.getElementById("console").appendChild(document
.createTextNode(s
+ "\n"));
13 function shouldBe(a
, b
)
23 log("PASS: " + a
+ " should be " + b
+ " and is.");
25 log("FAIL: " + a
+ " should be " + b
+ " but instead is " + evalA
+ ".");
31 x
= eval("do { 1; } while(0);");
34 var x
= eval("do { 1; break; } while(0);");
37 var x
= eval("do { 1; continue; } while(0);");
40 var x
= eval("do { 1; ; } while(0);");