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