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