[JSCRIPT_WINETEST] Sync with Wine Staging 4.0. CORE-15682

This commit is contained in:
Amine Khaldi 2019-01-26 13:12:15 +01:00
parent 660f7b9090
commit 20f9fb6150
3 changed files with 60 additions and 1 deletions

View file

@ -480,6 +480,20 @@ ok(obj3.prop1 === 1, "obj3.prop1 is not 1");
ok(obj3.prop2 === "boolean", "obj3.prop2 is not \"boolean\"");
ok(obj3.constructor === Object, "unexpected obj3.constructor");
if(invokeVersion >= 2) {
eval("tmp = {prop: 'value',}");
ok(tmp.prop === "value", "tmp.prop = " + tmp.prop);
eval("tmp = {prop: 'value',second:2,}");
ok(tmp.prop === "value", "tmp.prop = " + tmp.prop);
}else {
try {
eval("tmp = {prop: 'value',}");
}catch(e) {
tmp = true;
}
ok(tmp === true, "exception not fired");
}
{
var blockVar = 1;
blockVar = 2;
@ -1146,6 +1160,27 @@ case 3:
})();
expect(ret, "ret");
expect(x, "try,try2,finally2,finally,ret");
ret = (function() {
try {
return "try";
unreachable();
}catch(e) {
unreachable();
}finally {
new Object();
var tmp = (function() {
var s = new String();
try {
s.length;
}finally {
return 1;
}
})();
}
unreachable();
})();
expect(ret, "try");
})();
tmp = eval("1");
@ -1797,6 +1832,8 @@ ok(tmp, "tmp = " + tmp);
ok(x === undefined, "x = " + x);
})();
var get, set;
/* NoNewline rule parser tests */
while(true) {
if(true) break