summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug706699.js
blob: 26370f39769eb5655b8208b18d536d12241d81eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error: 2
function g(x, y) {
    return x + y;
}

function f(g, x, y) {
    // return x + y;
    return g(x, y);
}

assertEq(g(4, 5), 9);

obj = { valueOf: function () { throw 2; } };

print(f(g, obj, 2));