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

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:7f1adcff0f99
1 // Don't treat f.caller as a singleton property access, it
2 // has a non-default getter.
3 function f(obj) {
4 return f.caller;
5 }
6 function g(obj) {
7 return f(obj);
8 }
9 function gg(obj) {
10 return f.call(obj, obj);
11 }
12
13 assertEq(g({}), g);
14
15 actual = gg(function() {});
16 assertEq(actual, gg);

mercurial