blob: 0d9b27cc5448b058dea02d268f40b045b8912e3b [file] [log] [blame]
//@ runDefault
function test() {
try {
[1,2].sort(true);
return false;
} catch (etrue) {}
try {
[1,2].sort({});
return false;
} catch (eobj) {}
try {
[1,2].sort([]);
return false;
} catch (earr) {}
try {
[1,2].sort(/a/g);
return false;
} catch (eregex) {}
return true;
}
if(!test())
throw new Error("Bad result");