blob: 4f6bbb50fa31b6a723b69cc378f73b4c60c277e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
function* gen(z) {
try {
yield 1;
} finally {
for (let i = 0; i < 10; i++) {}
var x = z + 1;
}
}
for (let i = 0; i < 20; i++) {
let g = gen(1);
g.next();
g.return();
}
|