diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-28 12:03:44 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-28 12:03:44 +0800 |
commit | e815cc9495f15baa259e22d8a9d83b037f5cb831 (patch) | |
tree | e174afbf79055251bb82deb282baaf9a22d407f2 /server/src/vm/local.lua | |
parent | e6252422506c45dfb4c583ca2438cc090ea4a282 (diff) | |
download | lua-language-server-e815cc9495f15baa259e22d8a9d83b037f5cb831.zip |
修正一些bug
Diffstat (limited to 'server/src/vm/local.lua')
-rw-r--r-- | server/src/vm/local.lua | 6 |
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 |