This commit is contained in:
pygy 2011-08-15 23:26:32 +03:00
parent 18e6a4784e
commit 9c0423638a

View File

@ -1,4 +1,3 @@
module("moonscript.parse", package.seeall) module("moonscript.parse", package.seeall)
local util = require"moonscript.util" local util = require"moonscript.util"
@ -51,7 +50,7 @@ local TermOp = Space * C(S"*/%^")
local Shebang = P"#!" * P(1 - Stop)^0 local Shebang = P"#!" * P(1 - Stop)^0
local function wrap(fn) local function wrap(fn)
local env = getfenv(fi) local env = getfenv(fn)
return setfenv(fn, setmetatable({}, { return setfenv(fn, setmetatable({}, {
__index = function(self, name) __index = function(self, name)