summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/spread-generator.es6
blob: a7831295a97da024df7a5220cb1b402b3ced9d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
function *generate() {
  yield 1;
  yield 2;
  yield 3;
}

function fn() {
  return Math.max(... generate());
}
assertEqual(fn(), 3);
test(fn);