diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-27 15:03:17 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-27 15:03:17 +0800 |
commit | b6a0f2e122d6821ce211ccd0f8c73bf95d0f7491 (patch) | |
tree | 7ab9c5a6286136814852688cdaf1f243b65a477b /server/src/vm/value.lua | |
parent | fcd29ea768e014a2284c3e991a0310b3708b6408 (diff) | |
download | lua-language-server-b6a0f2e122d6821ce211ccd0f8c73bf95d0f7491.zip |
统计持有函数
Diffstat (limited to 'server/src/vm/value.lua')
-rw-r--r-- | server/src/vm/value.lua | 3 |
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 |