blob: d49355faee2284c9278f8ba3b5bfa43d33f814a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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();
|