Files
babel/packages/babel-plugin-proposal-do-expressions/test/fixtures/do-expressions/yield/input.js
Tan Li Hau 6b57145d38 Support yield in do expression (#10101)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-04-06 17:09:14 +02:00

8 lines
77 B
JavaScript

function * g() {
const y = do {
let z;
yield 1;
};
return y;
}