Sign in
webkit
/
WebKit
/
69a7b74912bac36f8b22ecde7a51522c768c4c9c
/
.
/
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
);