summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug758991.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug758991.js')
-rw-r--r--js/src/jit-test/tests/ion/bug758991.js16
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 000000000..093a75249
--- /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);