Closed arcanis closed 9 years ago
The explode transformer is failing to add parens.
What we have now is:
var x = expressionThatNeedsToBeExpanded;
which gets turned into:
var x = a, remainder;
we need to ensure that we get:
var x = (a, remainder);
Actually, the problem is that we should not expand the function body (or params).
There are other bugs related to missing parens but not for generators/async functions.
The following code doesn't work (cf repl). It alerts the function replace instead of the result of the function call.