bug757431.js (484B)
1 function setterFunction(v) { called = true; } 2 function getterFunction(v) { return "getter"; } 3 Object.defineProperty(Array.prototype, 1,{ 4 get: getterFunction, 5 set: setterFunction 6 }); 7 gczeal(4); 8 var N = 350; 9 var source = "".concat( 10 repeat_str("try { f(); } finally {\n", N), 11 repeat_str("}", N)); 12 function repeat_str(str, repeat_count) { 13 var arr = new Array(--repeat_count); 14 while (repeat_count != 0) 15 arr[--repeat_count] = str; 16 return str.concat.apply(str, arr); 17 }