michael@0: try michael@0: { michael@0: Array.prototype.splice.call({ get length() { throw 'error'; } }); michael@0: throw new Error("should have thrown, didn't"); michael@0: } michael@0: catch (e) michael@0: { michael@0: assertEq(e, "error", "wrong error thrown: " + e); michael@0: }