Sign in
webkit
/
WebKit
/
9c8be771a698cc743f1dc94e95a2f7a35fcb0bb1
/
.
/
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!"
);
})();