lu4p
b3616f19c4
fix implementedOutsideGo, fixes #56 ( #59 )
...
Injected functions were mistaken for functions implemented outside go.
Asm functions:
obj.Scope().Pos() == 0
obj.Scope().End() == 0
Injected functions:
obj.Scope().Pos() == 0
obj.Scope().End() == 1
We now check for the End instead of the Pos.
5 years ago
lu4p
f1bf6f91ee
skip literals used in constant expressions
...
Fixes #39 .
5 years ago
lu4p
234174b418
don't obfuscate some literals which might break typechecking
5 years ago
Daniel Martí
5604a2aa9e
avoid importing fmt in strings test
...
Reduces its 'go test -short' time from ~3s to ~2.4s on my laptop, since
we have to compile fewer dependencies.
5 years ago
Daniel Martí
a09b197fe2
remove the code to handle a nil file.Imports
...
I could not reproduce the supposed panic, even after I was able to reach
a nil x.Imports in that line in question with the modified test.
5 years ago
lu4p
dd1fc4ed87
don't replace all consts with vars
...
In some cases, such as iotas or when constants are later required to be constants,
we could break compilation. Be more conservative.
Fixes #32 .
5 years ago
lu4p
077d02d43a
add basic literal obfuscation, starting with strings
...
Fixes #16 .
5 years ago