michael@0: michael@0: function g(x) { michael@0: if (!x) { michael@0: throw 1; michael@0: } michael@0: } michael@0: michael@0: function f(a, b, c, d) { michael@0: var x = [].push(3); michael@0: g(true); michael@0: assertEq(x, 1); michael@0: } michael@0: f(1.2, 2, 3, 4); michael@0: gc(); michael@0: f(1, 2, 3, 4); michael@0: