I don't fully understand luajit bytecode, so using upvalues is broken :X Make a PR if you have a fix for this function!
This is more like a bytecode converter: lua code -> gluajit bytecode -> lua code
There are lots of stuff that is taken from many sources that I can't remember because this was just a private thing that I was working on.
How to use: luajit main.lua INPUTFILE OUTPUTFILE (Optional)USE_UTF8
Credits:
- Lapin for libs/dis_bc.lua
- https://github.com/everyday-as/gluac
You can tell me if you find a part of code that is used from someone so I can give them credits.