-
Notifications
You must be signed in to change notification settings - Fork 67
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
[BUG] type(nil) is seemingly broken when obfuscating #51
Comments
Try instead of using type(nil), try just nil or make the variable without value so by default it is nil |
Just nil doesn't produce any issues. For now I can work around it by simply checking if a variable is nil first before trying to check its type, but it's still a bug in the obfuscator right now, so it should be mentioned |
Issue seems to be around 340 when ( Beautified)while Obsfucated |
Fixed in upcoming version v0.2 |
Describe the bug
As mentioned in #44, I finally tracked down the issue I was having with one of my script functions breaking as soon as Vmify, ProxifyLocals or both are used. Seems the issue is that type(nil) currently produces an error when used. So if you, for example, try to get the type of a table member that is nil, you get a non working script.
Expected behavior
type(nil) should be properly implemented when obfuscating.
To Reproduce
Adding a simple
local nilType = type(nil)
seems to break the function of my script immediately as soon as obfuscation options are used.Additional context
Lua 5.1
The text was updated successfully, but these errors were encountered: