Sign in
webkit
/
WebKit
/
d2d4cb6d99da7a2beed719988d6d3a2b598e2715
/
.
/
PerformanceTests
/
SixSpeed
/
tests
/
spread-generator
/
spread-generator.es6
blob: a7831295a97da024df7a5220cb1b402b3ced9d5f [
file
] [
log
] [
blame
]
function
*
generate
()
{
yield
1
;
yield
2
;
yield
3
;
}
function
fn
()
{
return
Math
.
max
(...
generate
());
}
assertEqual
(
fn
(),
3
);
test
(
fn
);