diff --git a/sandbox.lua b/sandbox.lua index 6b5edd1..5f0f1c2 100644 --- a/sandbox.lua +++ b/sandbox.lua @@ -172,7 +172,7 @@ function sandbox.protect(code, options) if not t[1] then error(t[2]) end return table.unpack(t, 2, t.n) - end + end, env end -- Public interface: sandbox.run