Closed da411d closed 4 years ago
Thanks for contributing to this project. I'm also a fan :)
My suggestion: I think that you can reuse the code to avoid repeating the same code:
just changing two lines:
if ( is_string($name) && ($name=='define') )
to:
if ( is_string($name) && ($name=='define' || $name=='defined') )
and:
if (count($node->args)!=2)
to:
if (($name=='define' && count($node->args)!=2) || ($name=='defined' && count($node->args)!=1))
I've forgotten about the exception message. Now, I don't know if it is valid to reuse the code
fixed in 2.0.11 thanx for reporting the bug
@pk-fr you also may take a look for https://github.com/javascript-obfuscator/javascript-obfuscator It has many interesting things, for example deobfuscate-protection.
Sory, i cant explain in English, i hope you understand😅