Hi, > But I don’t see this as critical for now.
This is probably not required as the google compiler take care of this for us.
Code like this:
function test() {
var a = false;
a = b;
if (a) {
Console.log("got here");
}
}
Becomes:
function test(){b&&Console.log("got here”)}
In this case both assignments are removed.
It even smart enough to turn this:
function test() {
var a = false;
var b = false;
a = true;
if (a && b) {
Console.log("got here");
}
}
Into nothing.
function test(){}
Thanks,
Justin
