I am using google closure compiler to minify the following code using the "ADVANCED_OPTIMIZATIONS" compilation level:
function(response){
console.log(response.data.data.message)
}
In this case I would expect the code to compile to:
function(a){
console.log(a.a.a.a)
}
but instead it looks like this after compiling:
function(a){
console.log(a.data.data.a)
}
can someone explain why this is?
one thing that stands out to me here is that the variables that were not renamed are both called "data". this stood out to me because my IDE detects "data" as a predefined js var, but I can't think of a good reason why google closure compiler would not rename an object property called "data".