1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
enableGeckoProfiling(); function foo(obj,x,y,z) { if (!y) assertEq(0, 1); obj.x = x; return y + z; } function bar() { var objz = {x:2} for(var i = 0; i < 1100; i++) { foo(objz,1,2,3); foo(objz, false, "bar", "foo"); } } bar();