svent / jsdetox

A Javascript malware analysis tool
https://svent.dev/projects/jsdetox/
591 stars 79 forks source link

Issue with for loops rewriting #8

Closed apolkosnik-old closed 11 years ago

apolkosnik-old commented 11 years ago

I'm getting errors from:

for( var x = [], y = d[k[234]], i = 0; i < y; i++) g = 3; return x;

as somehow it got rewritten as: for (var x =[]; var y = d[k[234]]; var i = 0; i < y; i++) ...

svent commented 11 years ago

Thanks for your report! This seems to be a duplicate issue (see #6) - I will keep this one open until I can confirm that.

svent commented 11 years ago

The fix for issue #6 also solved this one.