Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destructuring assignment removed by resolveProxyVariables #100

Open
jorants opened this issue Jan 11, 2024 · 0 comments
Open

Destructuring assignment removed by resolveProxyVariables #100

jorants opened this issue Jan 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jorants
Copy link

jorants commented Jan 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants