javascript-deobfuscator icon indicating copy to clipboard operation
javascript-deobfuscator copied to clipboard

[Bug] Handle separated declaration and assignment

Open Semnodime opened this issue 2 years ago • 1 comments

var foo;
foo = [42];
console.log(foo[0]);

should be handled identically with

var foo = [42];
console.log(foo[0]);

and be deobfuscated to

console.log(42);

Semnodime avatar May 18 '23 20:05 Semnodime

It's a little more complicated to handle these cases, but yes would be nice to have.

ben-sb avatar Jan 26 '25 18:01 ben-sb