pangloss/vim-javascript

Yield an object with a generator

brokenpylons opened this issue · 0 comments

Requisite minimal reproducible example, formatted as plain text :

function* gen1() {
    yield {
        *gen2() {
            console.log("test");
        }
    }
}

It works with 'return' and if you add parentheses around the object.