summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug758991.js
blob: 093a75249aa41df0a93feb09cd57cb15d7380e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Don't treat f.caller as a singleton property access, it
// has a non-default getter.
function f(obj) {
    return f.caller;
}
function g(obj) {
    return f(obj);
}
function gg(obj) {
    return f.call(obj, obj);
}

assertEq(g({}), g);

actual = gg(function() {});
assertEq(actual, gg);