summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-18 11:07:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-18 11:07:10 +0800
commitc7aa0be27e20341c1faa39d34898cbfbd1131a1b (patch)
tree4c38d1f06951b9f85c594b9ea9e50704789a3104 /script-beta
parent47fa86bd37cc41f343226a1aff13a2c66484ee6a (diff)
downloadlua-language-server-c7aa0be27e20341c1faa39d34898cbfbd1131a1b.zip
一定会返回表
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/vm/eachField.lua4
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