Sign in
webkit
/
WebKit
/
8438b3acecf76ebd57885118ed5c8bdf9f2fc05e
/
.
/
JSTests
/
es6
/
for..of_loops_with_generator_instances.js
blob: 221784e4e3fddb95b770c4547b5a565da2859834 [
file
] [
log
] [
blame
]
function
test
()
{
var
result
=
""
;
var
iterable
=
(
function
*(){
yield
1
;
yield
2
;
yield
3
;
}());
for
(
var
item of iterable
)
{
result
+=
item
;
}
return
result
===
"123"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);