swc/ecmascript/minifier/tests/terser/compress/arrow/issue_3092b/input.js

10 lines
173 B
JavaScript
Raw Normal View History

var obj = {
async bar(x) {
return await x, 2;
},
*gen(x) {
return yield x.toUpperCase(), 2;
},
};
console.log(obj.gen("pass").next().value);