summaryrefslogtreecommitdiff
path: root/server/src/vm/local.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-28 12:03:44 +0800
committersumneko <sumneko@hotmail.com>2019-04-28 12:03:44 +0800
commite815cc9495f15baa259e22d8a9d83b037f5cb831 (patch)
treee174afbf79055251bb82deb282baaf9a22d407f2 /server/src/vm/local.lua
parente6252422506c45dfb4c583ca2438cc090ea4a282 (diff)
downloadlua-language-server-e815cc9495f15baa259e22d8a9d83b037f5cb831.zip
修正一些bug
Diffstat (limited to 'server/src/vm/local.lua')
-rw-r--r--server/src/vm/local.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/vm/local.lua b/server/src/vm/local.lua
index 11e3c8de..c6e67dbf 100644
--- a/server/src/vm/local.lua
+++ b/server/src/vm/local.lua
@@ -113,6 +113,12 @@ function mt:shadow(old)
group[#group+1] = self
self._shadow = group
+ if not self:getSource() then
+ log.error(table.dump(self))
+ log.error(table.dump(getmetatable(self)))
+ return
+ end
+
old:close(self:getSource().start - 1)
end