mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
jscript: Don't use break in finally block on pre-IE8 jscript.
This commit is contained in:
parent
77e01019c5
commit
e7bb8813a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user