summaryrefslogtreecommitdiff
path: root/script/vm/value.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-11 17:45:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-11 17:45:39 +0800
commit41f0744c4e601ec80e63cce15b6e50f02f6e4a71 (patch)
tree7f42eaa2e162578db943eef9fce74580c08f766d /script/vm/value.lua
parent2abeaaf81dd8c288a27a2c9638bf5b527ece3463 (diff)
downloadlua-language-server-41f0744c4e601ec80e63cce15b6e50f02f6e4a71.zip
fix #1320
Diffstat (limited to 'script/vm/value.lua')
-rw-r--r--script/vm/value.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/value.lua b/script/vm/value.lua
index bbae446c..7eab4a8e 100644
--- a/script/vm/value.lua
+++ b/script/vm/value.lua
@@ -23,7 +23,8 @@ function vm.testCondition(source)
hasFalse = true
end
elseif n.type == 'global' and n.cate == 'type' then
- if n.name == 'boolean' then
+ if n.name == 'boolean'
+ or n.name == 'unknown' then
return nil
end
if n.name == 'false'