js/src/jit-test/tests/ion/bug706699.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:02d2d2077600
1 // |jit-test| error: 2
2 function g(x, y) {
3 return x + y;
4 }
5
6 function f(g, x, y) {
7 // return x + y;
8 return g(x, y);
9 }
10
11 assertEq(g(4, 5), 9);
12
13 obj = { valueOf: function () { throw 2; } };
14
15 print(f(g, obj, 2));
16

mercurial