Commit e7bb8813 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Don't use break in finally block on pre-IE8 jscript.

parent 77e01019
......@@ -842,34 +842,37 @@ ok(!("nonexistent" in obj1), "nonexistent added to obj1 by for..in loop");
var i, j;
tmp = "";
i = 0;
while(true) {
tmp += "1";
for(i = 1; i < 3; i++) {
switch(i) {
case 1:
tmp += "2";
continue;
case 2:
tmp += "3";
try {
throw null;
}finally {
tmp += "4";
break;
/* Previous versions have broken finally block implementation */
if(ScriptEngineMinorVersion() >= 8) {
tmp = "";
i = 0;
while(true) {
tmp += "1";
for(i = 1; i < 3; i++) {
switch(i) {
case 1:
tmp += "2";
continue;
case 2:
tmp += "3";
try {
throw null;
}finally {
tmp += "4";
break;
}
default:
ok(false, "unexpected state");
}
default:
ok(false, "unexpected state");
tmp += "5";
}
with({prop: "6"}) {
tmp += prop;
break;
}
tmp += "5";
}
with({prop: "6"}) {
tmp += prop;
break;
}
ok(tmp === "123456", "tmp = " + tmp);
}
ok(tmp === "123456", "tmp = " + tmp);
tmp = "";
i = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment