Sign in
webkit
/
WebKit
/
5969b6f1f74632b1546edb27bd956b187c2c3d52
/
.
/
JSTests
/
microbenchmarks
/
let-for-in.js
blob: f5733d0981dac78b270dbec5a38d2ba0fa61e99a [
file
] [
log
] [
blame
]
function
foo
(
o
)
{
var
count
=
0
;
for
(
let p in o
)
{
if
(
o
[
p
])
count
++;
}
return
count
;
}
noInline
(
foo
);
var
total
=
0
;
for
(
let j
=
0
;
j
<
100000
;
++
j
)
total
+=
foo
(
new
Error
);
if
(
total
!=
300000
)
throw
new
Error
(
"Bad result: "
+
total
);