Sign in
webkit
/
WebKit
/
9906cd4a18dbaf7bc4e4f84d74b7b3aa6c756f5f
/
.
/
PerformanceTests
/
SixSpeed
/
tests
/
for-of-object
/
for-of-object.es5
blob: 3dc1da192972ae27fd45b9fdf3301b02cab6e223 [
file
] [
log
] [
blame
]
var
data
=
{
'a'
:
'b'
,
'c'
:
'd'
};
function
fn
()
{
var
ret
=
''
;
for
(
var
name
in
data
)
{
if
(
data
.
hasOwnProperty
(
name
))
{
ret
+=
data
[
name
];
}
}
return
ret
;
}
assertEqual
(
fn
(),
'bd'
);
test
(
fn
);