Sign in
webkit
/
WebKit
/
dca36f254f95278f4577597df3aa0ae99d9cd592
/
.
/
JSTests
/
microbenchmarks
/
put-by-val-large-index-blank-indexing-type.js
blob: f94bd555ff0417ea6db5509ed116cd5e2573bbc6 [
file
] [
log
] [
blame
]
var
global
=
[];
function
foo
(
o
,
id
)
{
o
[
id
]
=
42
;
}
var
sum
=
0
;
for
(
var
i
=
0
;
i
<
20000
;
i
++)
{
var
o
=
{};
foo
(
o
,
i
);
sum
+=
o
[
i
];
global
.
push
(
o
);
}
if
(
sum
!=
42
*
20000
)
throw
"Error!"