Sign in
webkit
/
WebKit
/
d4f65fcc3c5c5e5acf4da0072f42bc48017306dc
/
.
/
PerformanceTests
/
SixSpeed
/
tests
/
generator
/
generator.es6
blob: 431fd76f2213f8134e5efce74e426e2a42360b0a [
file
] [
log
] [
blame
]
function
*
generator
()
{
yield
1
;
yield
2
;
}
function
fn
()
{
var
iterator
=
generator
();
iterator
.
next
();
iterator
.
next
();
return
iterator
.
next
().
done
;
}
assertEqual
(
fn
(),
true
);
test
(
fn
);