diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-30 01:22:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-30 01:22:36 +0800 |
commit | 90fa999b000207f4e52363da05917ae5fc6da574 (patch) | |
tree | ee393d1b4b810675e4646d15b17eab8638fb0b0b /script-beta/vm | |
parent | b237d03564a8fd7a4c458468262a20882f9426d0 (diff) | |
download | lua-language-server-90fa999b000207f4e52363da05917ae5fc6da574.zip |
修正一个报错
Diffstat (limited to 'script-beta/vm')
-rw-r--r-- | script-beta/vm/eachRef.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/vm/eachRef.lua b/script-beta/vm/eachRef.lua index 0d772209..d6ca819b 100644 --- a/script-beta/vm/eachRef.lua +++ b/script-beta/vm/eachRef.lua @@ -248,7 +248,7 @@ end --- 自己作为函数的返回值 local function asReturn(source, callback) local parent = source.parent - if parent.type ~= 'return' then + if not parent or parent.type ~= 'return' then return end local func = guide.getParentFunction(source) |