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