summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1077349.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1077349.js')
-rw-r--r--js/src/jit-test/tests/ion/bug1077349.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1077349.js b/js/src/jit-test/tests/ion/bug1077349.js
new file mode 100644
index 000000000..886e5088a
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1077349.js
@@ -0,0 +1,20 @@
+
+function boo() {
+ return foo.arguments[0];
+}
+
+function foo(a,b,c) {
+ if (a == 0) {
+ a ^= 4;
+ return boo();
+ }
+
+ return undefined;
+}
+
+function inlined() {
+ return foo.apply({}, arguments);
+}
+
+assertEq(inlined(1,2,3), undefined);
+assertEq(inlined(0,1,2), 4);