keplerproject / orbit

Orbit is an MVC web framework for Lua.
http://keplerproject.github.io/orbit/
118 stars 35 forks source link

add support for lua 5.2, 5.3 and above #46

Open paulo-erichsen opened 5 years ago

paulo-erichsen commented 5 years ago

orbit works in lua 5.1.5, but is broken in 5.2 and above (such as 5.2.4 and 5.3.5)

when I try to use orbit in 5.2, an exception is thrown

lua: /usr/share/lua/5.3/orbit.lua:9: attempt to call a nil value (local 'setfenv')
stack traceback:
    /usr/share/lua/5.3/orbit.lua:9: in main chunk
    [C]: in function 'require'
...

the line of code in question is

9: setfenv(1, _G)

related info: