Sign in
webkit
/
WebKit
/
b0d7f9b249dd6483d6c7bc4f13c440c0842b7127
/
.
/
JSTests
/
stress
/
for-in-postfix-ignored-index.js
blob: b7947eaddedb5c958ad570e6b222a4aa39f4dfb8 [
file
] [
log
] [
blame
]
//@ runDefault
function
foo
(
o
)
{
var
result
=
0
;
for
(
var
s in o
)
{
s
++;
result
+=
o
[
s
];
}
return
result
;
}
var
result
=
foo
({
f
:
42
});
if
(
""
+
result
!=
"NaN"
)
throw
"Error: bad result: "
+
result
;