summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug724975.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug724975.js')
-rw-r--r--js/src/jit-test/tests/ion/bug724975.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug724975.js b/js/src/jit-test/tests/ion/bug724975.js
new file mode 100644
index 000000000..745e2db40
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug724975.js
@@ -0,0 +1,11 @@
+LastIndexOf("hello", "ll", 5);
+function LastIndexOf(string, search, position) {
+ var j = 0;
+ for (;;) {
+ for (;;) {
+ if (string != search) break;
+ }
+ if (j++ > 100)
+ break;
+ }
+}