summaryrefslogtreecommitdiff
path: root/script-beta/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-29 16:54:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-29 16:54:15 +0800
commitcbf18dc54d2d2315ae3bace888fc428550149c7a (patch)
treef5ea5167cac1f801e2bc897a22aaa8a42c7599a1 /script-beta/vm
parent155ee2059dd18d805140b87901d01ff79257ed60 (diff)
downloadlua-language-server-cbf18dc54d2d2315ae3bace888fc428550149c7a.zip
支持二级调用
Diffstat (limited to 'script-beta/vm')
-rw-r--r--script-beta/vm/getValue.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/vm/getValue.lua b/script-beta/vm/getValue.lua
index 9ad9e86b..ef3a5504 100644
--- a/script-beta/vm/getValue.lua
+++ b/script-beta/vm/getValue.lua
@@ -857,6 +857,9 @@ function vm.viewType(values)
if not values then
return 'any'
end
+ if type(values) ~= 'table' then
+ return values or 'any'
+ end
local types = {}
for i = 1, #values do
local tp = values[i].type