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