dojo / dojox

Dojo 1 - extras library. Please submit bugs to https://bugs.dojotoolkit.org/
https://dojotoolkit.org/
Other
150 stars 231 forks source link

Change block-scoped functions to named function expressions #326

Closed msssk closed 3 years ago

msssk commented 3 years ago

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