comparison: js/src/jit-test/tests/ion/bug706699.js
js/src/jit-test/tests/ion/bug706699.js
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
equal
deleted
inserted
replaced
|
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 |