norman / telescope

A highly customizable test library for Lua that allows declarative tests with nested contexts.
http://norman.github.com/telescope/
160 stars 35 forks source link

Lua 5.2 compatibility (removal of setfenv and getfenv)? #18

Closed cymen closed 12 years ago

cymen commented 12 years ago

Are there any plans for making telescope compatible with Lua 5.2 which removes setfenv and getfenv?

norman commented 12 years ago

The master branch currently supports 5.2 through David Manura's compat_env, but it hasn't been pushed to Luarocks yet.

I'm also experimenting with a version with that makes much better use of environments and doesn't use an emulated getfenv/setfenv on 5.2, but I don't have anything to push or announce yet.

cymen commented 12 years ago

Ah! I was using master then tried Luarocks (along with some other tinkering) and wondered where I went wrong. Now it all makes sense. Thanks you. I'll stick with master.

hinell commented 1 year ago

Neovim depends on the LuaJIT 2.1, the latter supports Lua 5.2 features only partially. See for more info: https://blast.hk/moonloader/luajit/changes.html