summaryrefslogtreecommitdiff
path: root/server/src/vm/value.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-27 15:03:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-27 15:03:17 +0800
commitb6a0f2e122d6821ce211ccd0f8c73bf95d0f7491 (patch)
tree7ab9c5a6286136814852688cdaf1f243b65a477b /server/src/vm/value.lua
parentfcd29ea768e014a2284c3e991a0310b3708b6408 (diff)
downloadlua-language-server-b6a0f2e122d6821ce211ccd0f8c73bf95d0f7491.zip
统计持有函数
Diffstat (limited to 'server/src/vm/value.lua')
-rw-r--r--server/src/vm/value.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua
index a7170659..ad1deccf 100644
--- a/server/src/vm/value.lua
+++ b/server/src/vm/value.lua
@@ -389,6 +389,9 @@ function mt:getFunction()
if not func then
return nil
end
+ if func._removed then
+ return nil
+ end
if not func:getSource() then
self._func = nil
end