Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
microbenchmarks
/
array-length-reset-double.js
blob: faa5b49bf2c2a792146e505b01bded3ac2b3911a [
file
] [
edit
]
function
test
()
{
let a
=
[];
for
(
let i
=
0
;
i
<
1e6
;
++
i
)
{
a
.
push
(
1.5
);
a
.
push
(
2.5
);
a
.
push
(
3.5
);
a
.
length
=
0
;
}
return
a
.
length
;
}
noInline
(
test
);
for
(
let i
=
0
;
i
<
5
;
++
i
)
test
();