1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug794025.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +// |jit-test| error:RangeError 1.5 + 1.6 +function getterFunction(v) { return "getter"; } 1.7 +Object.defineProperty(Array.prototype, 1,{ 1.8 + get: getterFunction, 1.9 +}); 1.10 +var N = (10000); 1.11 +repeat_str("try { f(); } finally {\n", N), 1.12 +repeat_str("}", ("" )); 1.13 +function repeat_str(str, repeat_count) { 1.14 + var arr = new Array(--repeat_count); 1.15 + while (repeat_count != 0) 1.16 + arr[--repeat_count] = str; 1.17 + return str.concat.apply(str, arr); 1.18 +}