Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
PerformanceTests
/
SixSpeed
/
tests
/
map-set
/
map-set.es5
blob: b99ec7ad04c4902c992e93371de3b2d61116a5d6 [
file
] [
log
] [
blame
]
function
fn
()
{
var
map
=
{},
set
=
[];
for
(
var
i
=
0
;
i
<
250
;
i
++)
{
map
[
i
]
=
i
;
set
.
push
(
i
);
}
map
.
foo
=
'bar'
;
set
.
push
(
'bar'
);
return
(
'foo'
in
map
)
&&
set
.
indexOf
(
'bar'
)
>=
0
;
}
assertEqual
(
fn
(),
true
);
test
(
fn
);