summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/argsx-4.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/arguments/argsx-4.js')
-rw-r--r--js/src/jit-test/tests/arguments/argsx-4.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/arguments/argsx-4.js b/js/src/jit-test/tests/arguments/argsx-4.js
new file mode 100644
index 000000000..b52b14853
--- /dev/null
+++ b/js/src/jit-test/tests/arguments/argsx-4.js
@@ -0,0 +1,23 @@
+actual = '';
+expected = '[object Arguments] undefined undefined,[object Arguments] undefined undefined,';
+
+function f() {
+ g(arguments);
+}
+
+function g(a, b, c) {
+ h(arguments);
+ a = 1;
+ b = 2;
+ c = 3;
+ h(arguments);
+}
+
+function h(a, b, c) {
+ appendToActual(a + ' ' + b + ' ' + c);
+}
+
+f(4, 5, 6);
+
+
+assertEq(actual, expected)