Destructuring assignment removed by resolveProxyVariables
jorants opened this issue · comments
Consider the following example:
d = (b) => {
var [x,y,z] = b;
console.log(x);
}
d([1,2,3]);
this gives
[+] Obfuscation type is Generic
[+] resolveProxyVariables committed 1 new changes!
[+] ==> Cycle 1 completed in 0.008 seconds with 1 changes (22 nodes)
[+] ==> Cycle 2 completed in 0 seconds with 1 changes (22 nodes)
....
d = (a, b) => {
console.log(x);
};
d(2, [
1,
2,
3
]);
so x
is not replaced by b[0]
. I even wonder if this would be wanted, I would say it makes more sense to keep de-structuring proxy variables most of the time.