When I test the following code in closure compiler at http://closure-compiler.appspot.com:
// ==ClosureCompiler==
// @output_file_name default.js
// @compilation_level ADVANCED_OPTIMIZATIONS
// @formatting pretty_print
// ==/ClosureCompiler==
// These get renamed
window.foo = {};
window.bar = {};
// These don't
window.uid = {};
window.test = {};
The output is:
window.a = {};
window.b = {};
window.uid = {};
window.test = {};
Why does it rename :
window.foo = {};
window.bar = {};
But not:
window.uid = {};
window.test = {};
It seems to be an issue with certain words?