Sign in
webkit
/
WebKit
/
c6f5eb86a2e764e93f8acb30662cc524010272f6
/
.
/
JSTests
/
microbenchmarks
/
for-in-double-array-with-own-named.js
blob: f58bf43fe5af0ff1d30138ba77e3738047435c95 [
file
] [
log
] [
blame
]
function
test
(
object
)
{
sum
=
0
;
for
(
var
i in object
)
sum
+=
object
[
i
];
return
sum
;
}
noInline
(
test
);
for
(
let i
=
0
;
i
<
1e5
;
++
i
)
{
var
o
=
Array
(
100
).
fill
(
1.123214231
);
o
.
a
=
0
;
o
.
b
=
"surprise string"
;
test
(
o
);
}