mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
8 lines
156 B
JavaScript
8 lines
156 B
JavaScript
var obj = {
|
|
bar: async (x) => (await x, 2),
|
|
*gen(x) {
|
|
return yield x.toUpperCase(), 2;
|
|
},
|
|
};
|
|
console.log(obj.gen("pass").next().value);
|