blob: ec78510580878bbbf890aa4fe3521d93cb57cfc6 [file] [log] [blame]
function test() {
var a, b;
({a,b} = {a:1,b:2});
try {
eval("({a,b}) = {a:3,b:4};");
}
catch(e) {
return a === 1 && b === 2;
}
}
if (!test())
throw new Error("Test failed");