swc/ecmascript/parser/tests/span/js/expr/yield.js
2020-08-05 12:34:44 +09:00

4 lines
52 B
JavaScript

function* foo() {
yield 1
yield* [1, 2, 3]
}