ben-sb / javascript-deobfuscator

General purpose JavaScript deobfuscator
https://deobfuscate.io
Apache License 2.0
786 stars 112 forks source link

[Bug] Handle separated declaration and assignment #41

Open Semnodime opened 1 year ago

Semnodime commented 1 year ago
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);