summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-13 18:07:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-13 18:07:27 +0800
commit68265491e70460966276752586a3e58c0781b0c8 (patch)
tree45374e5a4850d54e846c58452fe1fe7742009886 /server
parent2614c2f6e6a53e4142fe57a184fd7bead11a5f4f (diff)
downloadlua-language-server-68265491e70460966276752586a3e58c0781b0c8.zip
修正一个报错
Diffstat (limited to 'server')
-rw-r--r--server/src/vm/function.lua2
-rw-r--r--server/src/vm/source.lua5
2 files changed, 1 insertions, 6 deletions
diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua
index 72cbd410..80efa56c 100644
--- a/server/src/vm/function.lua
+++ b/server/src/vm/function.lua
@@ -121,7 +121,7 @@ function mt:returnDots(index)
if not self.returns then
self.returns = createMulti()
end
- self.returns[index] = createMulti()
+ --self.returns[index] = createMulti()
end
function mt:loadDots()
diff --git a/server/src/vm/source.lua b/server/src/vm/source.lua
index f30f95d9..0f167063 100644
--- a/server/src/vm/source.lua
+++ b/server/src/vm/source.lua
@@ -85,11 +85,6 @@ end
function mt:kill()
self._dead = true
- self._bindLocal = nil
- self._bindValue = nil
- self._bindCall = nil
- self._bindFunction = nil
- self._bindCallArgs = nil
List[self.id] = nil
end