1 2 3 4 5 6 7 8 9 10 11
function f() { try { let foo = 3; for (var i=0; i<50; i++) yield i + foo; } catch(e) {} } var it = f(); for (var i=0; i<40; i++) it.next(); it.close();