You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mangle_properties() will mangle properties on the global object, whereas the rest of UglifyJS does not modify globals. This inconsistency breaks scripts which create globals like so:
window.Foo = {};
Foo.bar = 1;
// is mangled to:
window.q = {}; // mangled property
Foo.r = 1; // unmangled global
There should be a way to make mangle_properties avoid mangling properties where the left side of the dot is a well-known global alias, i.e. window, self, global.
The text was updated successfully, but these errors were encountered:
It's probably pretty complicated to figure out that it's a global reference there... I guess maybe the solution is just to reserve the property name localforage :-\
mangle_properties() will mangle properties on the global object, whereas the rest of UglifyJS does not modify globals. This inconsistency breaks scripts which create globals like so:
There should be a way to make mangle_properties avoid mangling properties where the left side of the dot is a well-known global alias, i.e.
window
,self
,global
.The text was updated successfully, but these errors were encountered: