summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testInnerMissingArgs.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testInnerMissingArgs.js')
-rw-r--r--js/src/jit-test/tests/basic/testInnerMissingArgs.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testInnerMissingArgs.js b/js/src/jit-test/tests/basic/testInnerMissingArgs.js
new file mode 100644
index 000000000..d70b5d1aa
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testInnerMissingArgs.js
@@ -0,0 +1,21 @@
+function innerTestInnerMissingArgs(a,b,c,d)
+{
+ if (a) {
+ } else {
+ }
+}
+
+function doTestInnerMissingArgs(k)
+{
+ for (i = 0; i < 10; i++) {
+ innerTestInnerMissingArgs(k);
+ }
+}
+
+function testInnerMissingArgs()
+{
+ doTestInnerMissingArgs(1);
+ doTestInnerMissingArgs(0);
+}
+
+testInnerMissingArgs();