function* test() { yield 2; yield 3; console.log(this) } let b = test() console.log(b.next()) console.log(b.next()) console.log(b.next())