Skip to content

1.3.27: Don't collapse line feeds after "return"

Compare
Choose a tag to compare
@matthiasmullie matthiasmullie released this 09 Jul 13:15
· 361 commits to master since this release
return is not guaranteed to be followed by a return value.
It could just be "return", followed by nothing (void return),
not even a semicolon, just line feed (ASI)
Whatever is next could, for example, be another operator.
We may just need ASI to kick in there, so keep the line feed
after return.

Fixes issue #54