bublejs / buble

https://buble.surge.sh
MIT License
871 stars 64 forks source link

trailingFunctionCommas causes an infinite loop on calls with commented arguments #192

Closed mourner closed 5 years ago

mourner commented 5 years ago

The following code (a pretty common pattern) causes Buble v0.19.7 to freeze, getting stuck in an infinite for loop (try pasting it in the REPL):

foo(
  1 // bar
);

This doesn't happen with trailingFunctionCommas: false. cc @adrianheine

adrianheine commented 5 years ago

Related to #175.