Spread operator not supported in function call
decademoon opened this issue · 0 comments
decademoon commented
regenerator-transform@0.14.4
The following code fails to be transformed:
async function foo() {
bar(...await x);
}
See this babel repl.
Exception occurs at the assertion here:
regenerator/packages/regenerator-transform/src/emit.js
Lines 903 to 910 in a755f3f
Expected type "Expression" with option {}, but instead got "SpreadElement"