michael@0: // |jit-test| error: 2 michael@0: function g(x, y) { michael@0: return x + y; michael@0: } michael@0: michael@0: function f(g, x, y) { michael@0: // return x + y; michael@0: return g(x, y); michael@0: } michael@0: michael@0: assertEq(g(4, 5), 9); michael@0: michael@0: obj = { valueOf: function () { throw 2; } }; michael@0: michael@0: print(f(g, obj, 2)); michael@0: