summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/arityMismatchMissingArg.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/arityMismatchMissingArg.js')
-rw-r--r--js/src/jit-test/tests/basic/arityMismatchMissingArg.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/arityMismatchMissingArg.js b/js/src/jit-test/tests/basic/arityMismatchMissingArg.js
new file mode 100644
index 0000000000..79284e9487
--- /dev/null
+++ b/js/src/jit-test/tests/basic/arityMismatchMissingArg.js
@@ -0,0 +1,8 @@
+function arityMismatchMissingArg(arg)
+{
+ for (var a = 0, i = 1; i < 10000; i *= 2) {
+ a += i;
+ }
+ return a;
+}
+assertEq(arityMismatchMissingArg(), 16383);