summaryrefslogtreecommitdiff
path: root/script/vm/global.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-13 17:05:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-13 17:05:50 +0800
commite8b46e34769bb1ad974f19ab214f943df8cce072 (patch)
tree37471b616ac978f48263562b52d3ea3e7a35cd42 /script/vm/global.lua
parentff741df641bbe99a418bb856e14e3ec30bbc08aa (diff)
downloadlua-language-server-e8b46e34769bb1ad974f19ab214f943df8cce072.zip
fix
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r--script/vm/global.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua
index 19474bb5..c1b5f320 100644
--- a/script/vm/global.lua
+++ b/script/vm/global.lua
@@ -552,7 +552,7 @@ function vm.compileByGlobal(source)
if vm.bindDocs(source) then
return true
end
- if source.value then
+ if source.value and source.value.type ~= 'nil' then
vm.setNode(source, vm.compileNode(source.value))
return true
end