1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/splice-throwing-length-getter-668024.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,9 @@ 1.4 +try 1.5 +{ 1.6 + Array.prototype.splice.call({ get length() { throw 'error'; } }); 1.7 + throw new Error("should have thrown, didn't"); 1.8 +} 1.9 +catch (e) 1.10 +{ 1.11 + assertEq(e, "error", "wrong error thrown: " + e); 1.12 +}