summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug653396.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testBug653396.js')
-rw-r--r--js/src/jit-test/tests/basic/testBug653396.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testBug653396.js b/js/src/jit-test/tests/basic/testBug653396.js
new file mode 100644
index 000000000..6eefdf228
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testBug653396.js
@@ -0,0 +1,6 @@
+// |jit-test| error: RangeError
+function g(a, b, c, d) {}
+function f(a, b, c) {
+ arguments.length = getMaxArgs() + 1;
+ g.apply(this, arguments);
+}f();