diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 11:07:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 11:07:10 +0800 |
commit | c7aa0be27e20341c1faa39d34898cbfbd1131a1b (patch) | |
tree | 4c38d1f06951b9f85c594b9ea9e50704789a3104 | |
parent | 47fa86bd37cc41f343226a1aff13a2c66484ee6a (diff) | |
download | lua-language-server-c7aa0be27e20341c1faa39d34898cbfbd1131a1b.zip |
一定会返回表
-rw-r--r-- | script-beta/vm/eachField.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/vm/eachField.lua b/script-beta/vm/eachField.lua index f919c2e0..38087d6a 100644 --- a/script-beta/vm/eachField.lua +++ b/script-beta/vm/eachField.lua @@ -24,13 +24,13 @@ end local function eachField(source, deep) local unlock = vm.lock('eachField', source) if not unlock then - return + return {} end while source.type == 'paren' do source = source.exp if not source then - return + return {} end end |