mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
fix issue #364
This commit is contained in:
@@ -59,8 +59,6 @@ return function (name , G, loader)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
setmetatable(G, { __index = env , __newindex = init_system })
|
|
||||||
|
|
||||||
local pattern
|
local pattern
|
||||||
|
|
||||||
do
|
do
|
||||||
@@ -85,9 +83,10 @@ return function (name , G, loader)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
mainfunc()
|
setmetatable(G, { __index = env , __newindex = init_system })
|
||||||
|
local ok, err = pcall(mainfunc)
|
||||||
setmetatable(G, nil)
|
setmetatable(G, nil)
|
||||||
|
assert(ok,err)
|
||||||
|
|
||||||
for k,v in pairs(temp_global) do
|
for k,v in pairs(temp_global) do
|
||||||
G[k] = v
|
G[k] = v
|
||||||
|
|||||||
Reference in New Issue
Block a user