4 ms·
In simple mode, Closure Compiler would rename the local variable "prop" but not alter the properties. In advanced mode, Closure Compiler would globally rename
by mdavidn 11y ago
In simple mode, Closure Compiler would rename the local variable "prop" but not alter the properties.
In advanced mode, Closure Compiler would globally rename properties and statically eliminate dead code. In your example, it would remove a, b, and c and break the dynamic invocation.
This behavior is all outlined in Closure's documentation with examples.
[1]: https://developers.google.com/closure/compiler/docs/limitations#restrictions-for-advanced_optimizations https://developers.google.com/closure/compiler/docs/limitati...