google / closure-compiler

A JavaScript checker and optimizer.
https://developers.google.com/closure/compiler/
Apache License 2.0
7.31k stars 1.15k forks source link

BUG in Whitespace only for online compiler #4144

Open jplevene opened 5 months ago

jplevene commented 5 months ago

In https://closure-compiler.app, when doing "Whitespace only", the setting:

// @language_out ECMASCRIPT_NEXT

needs to be added otherwise a for(const row of rows) returns $jscomp and loads of junk JavaScript code that won't run.

See https://github.com/google/closure-compiler/issues/4130