With the addition of block scope to ES6 it has become impractical for tools like Google Closure Compiler to handle block-scoped functions in pre-ES6 code and they are flagged as errors.
This PR ensures that dojox can still be built if the build profile sets optimizeOptions.languageIn to 'ECMASCRIPT3' with versions of Google Closure Compiler that support ES6. See dojo/util#83
With the addition of block scope to ES6 it has become impractical for tools like Google Closure Compiler to handle block-scoped functions in pre-ES6 code and they are flagged as errors.
This PR ensures that
dojox
can still be built if the build profile setsoptimizeOptions.languageIn
to'ECMASCRIPT3'
with versions of Google Closure Compiler that support ES6. See dojo/util#83