The Google Closure Compiler has a default language output setting that may change by release. v20170806 changed the default output language to ECMASCRIPT5.
This PR adds a default values for languageIn (ECMASCRIPT_2017) and languageOut (ECMASCRIPT3) if the build tool is configured to use the Google Closure Compiler. These can be overridden in optimizeOptions in the build profile.
ECMASCRIPT_2017 is used for languageIn to allow existing code to continue working. With the addition of block scope in ES6 the Google Closure Compiler treats block-scoped functions as errors in pre-ES6 code.
The Google Closure Compiler has a default language output setting that may change by release. v20170806 changed the default output language to ECMASCRIPT5.
This PR adds a default values for
languageIn
(ECMASCRIPT_2017) andlanguageOut
(ECMASCRIPT3) if the build tool is configured to use the Google Closure Compiler. These can be overridden inoptimizeOptions
in the build profile.ECMASCRIPT_2017 is used for
languageIn
to allow existing code to continue working. With the addition of block scope in ES6 the Google Closure Compiler treats block-scoped functions as errors in pre-ES6 code.Fixes #81