spread operator in method calls

Hi, not sure whether I should open an issue, a merge request or both for this bug :-)

I've got bitten by this when I used

if (tokens) this.add(...tokens); 

which transpiled in a doubly unexpected way: It uses a ref where this would've been sufficient, and when it uses a ref then it breaks the if body which needs to become a block.

Merge request reports

Loading