blob: ae97dd6402735393b4ef9788784e5965ffc36e6d [file] [log] [blame]
function test() {
return (function(x = 1) {
try {
eval("(function(a=a){}())");
return false;
} catch(e) {}
try {
eval("(function(a=b,b){}())");
return false;
} catch(e) {}
return true;
}());
}
if (!test())
throw new Error("Test failed");