diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug758991.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug758991.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug758991.js b/js/src/jit-test/tests/ion/bug758991.js new file mode 100644 index 0000000000..093a75249a --- /dev/null +++ b/js/src/jit-test/tests/ion/bug758991.js @@ -0,0 +1,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); |