summaryrefslogtreecommitdiff
path: root/script/vm/global-manager.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-07 03:42:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-07 03:42:34 +0800
commit6e12bb49c6351975193c906b7ef21fd2c1d61e10 (patch)
treeb83872cdbf1d25bbbaee6b42183f47f10722eb02 /script/vm/global-manager.lua
parentafaf9114d2ea37b1567b6e09ab018ae594f88e08 (diff)
downloadlua-language-server-6e12bb49c6351975193c906b7ef21fd2c1d61e10.zip
update
Diffstat (limited to 'script/vm/global-manager.lua')
-rw-r--r--script/vm/global-manager.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/global-manager.lua b/script/vm/global-manager.lua
index 5f0b6a14..66bb0aba 100644
--- a/script/vm/global-manager.lua
+++ b/script/vm/global-manager.lua
@@ -33,6 +33,9 @@ local compilerGlobalSwitch = util.switch()
if source.special ~= '_G' then
return
end
+ if not source.next then
+ return
+ end
m.compileObject(source.next)
end)
: case 'setglobal'