michael@0: try { michael@0: function testSlowArrayPopMultiFrame() { michael@0: a = undefined; michael@0: function parent(a, i) { i }; michael@0: function gramps(a, i) { michael@0: return parent; michael@0: } michael@0: var last; michael@0: for (var i = 0; ; gramps++) { michael@0: last = gramps(a, i) michael@0: } michael@0: }(testSlowArrayPopMultiFrame(), 23); michael@0: assertEq(0, 1); michael@0: } catch(e) { michael@0: assertEq(e instanceof TypeError, true); michael@0: }