summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1874929.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug1874929.js')
-rw-r--r--js/src/jit-test/tests/auto-regress/bug1874929.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug1874929.js b/js/src/jit-test/tests/auto-regress/bug1874929.js
new file mode 100644
index 0000000000..d49355faee
--- /dev/null
+++ b/js/src/jit-test/tests/auto-regress/bug1874929.js
@@ -0,0 +1,12 @@
+// |jit-test| --ion-offthread-compile=off; --small-function-length=1500
+
+function test() {
+ var r = 0;
+ for (let i = 100; i >= 0; --i) {
+ for (let j = 0; j < 15; ++j) {
+ r += ("aaaaaaaaaa").padStart(i, "bbb").length;
+ }
+ }
+ assertEq(r, 76575);
+}
+test();