blob: 695460b5c8af2c20cd819cf660c43554009ecaf9 (
plain)
1
2
3
4
5
6
7
8
9
|
try
{
Array.prototype.splice.call({ get length() { throw 'error'; } });
throw new Error("should have thrown, didn't");
}
catch (e)
{
assertEq(e, "error", "wrong error thrown: " + e);
}
|