Bug 794025 - Add missing test for bug 794025. r=needed-tests

--HG--
extra : rebase_source : 2e91ba614c130e1aa432824bfe1c7d29b18a209d
This commit is contained in:
Christian Holler 2013-03-13 01:13:15 +01:00
parent 3de0a82629
commit bd4e9f0a03

View File

@ -0,0 +1,15 @@
// |jit-test| error:RangeError
function getterFunction(v) { return "getter"; }
Object.defineProperty(Array.prototype, 1,{
get: getterFunction,
});
var N = (10000);
repeat_str("try { f(); } finally {\n", N),
repeat_str("}", ("" ));
function repeat_str(str, repeat_count) {
var arr = new Array(--repeat_count);
while (repeat_count != 0)
arr[--repeat_count] = str;
return str.concat.apply(str, arr);
}