Skip to content

Destructuring assignment removed by resolveProxyVariables #100

Open
@jorants

Description

@jorants

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions