luna-core 2.14.0

Pure-Rust Lua runtime (interpreter only, zero third-party dependencies). The JIT-equipped variant lives in the `luna-jit` crate.
Documentation
1
2
3
4
5
6
7
-- v2.14 HD 5.1 seed: setfenv/getfenv (removed in 5.2).
local function f() return x end
setfenv(f, { x = "sandboxed" })
print(f())
print(getfenv(f).x)
local g = function() return type(print) end
print(getfenv(g) == _G)