Sign in
webkit
/
WebKit
/
6ddf72b170615ecec95a6e91c205227cc12d556b
/
.
/
JSTests
/
microbenchmarks
/
array-filter-boolean-constructor.js
blob: 329dffb1a4be1f87f7cbf7cbc1404d6b17a099d0 [
file
] [
log
] [
blame
]
(
function
()
{
var
array
=
new
Array
(
300
);
for
(
var
i
=
0
;
i
<
300
;
i
++)
array
[
i
]
=
i
%
10
;
var
compacted
;
for
(
var
j
=
0
;
j
<
30000
;
j
++)
compacted
=
array
.
filter
(
Boolean
);
if
(
compacted
.
length
!==
270
)
throw
new
Error
(
"Bad assert!"
);
})();