summaryrefslogtreecommitdiff
path: root/server/src/vm/global.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-15 15:50:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-15 15:50:39 +0800
commit9aaf4607376e11a35fe04ef86baa3c18a9d90864 (patch)
treef0e9e025de033dc01e7f76b406d6ae0af7a9fbc7 /server/src/vm/global.lua
parentf65de4fabbe2b8b1a66a13661adc26f9b93f5d80 (diff)
downloadlua-language-server-9aaf4607376e11a35fe04ef86baa3c18a9d90864.zip
解除死掉的全局变量引用
Diffstat (limited to 'server/src/vm/global.lua')
-rw-r--r--server/src/vm/global.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/vm/global.lua b/server/src/vm/global.lua
index dea30525..99f05e37 100644
--- a/server/src/vm/global.lua
+++ b/server/src/vm/global.lua
@@ -12,6 +12,7 @@ return function (lsp)
end
global = t._G
+ global:set('_G', true)
for k, v in pairs(t) do
global:setChild(k, v)
end