summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testMultipleArgumentsObjects.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testMultipleArgumentsObjects.js')
-rw-r--r--js/src/jit-test/tests/basic/testMultipleArgumentsObjects.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testMultipleArgumentsObjects.js b/js/src/jit-test/tests/basic/testMultipleArgumentsObjects.js
new file mode 100644
index 000000000..dd8285d64
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testMultipleArgumentsObjects.js
@@ -0,0 +1,12 @@
+function testMultipleArgumentsObjects() {
+ var testargs = arguments;
+ var f = function (name, which) {
+ var args = [testargs, arguments];
+ return args[which][0];
+ };
+ var arr = [0, 0, 0, 0, 1];
+ for (var i = 0; i < arr.length; i++)
+ arr[i] = f("f", arr[i]);
+ return arr + '';
+}
+assertEq(testMultipleArgumentsObjects(), ",,,,f");