diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-13 17:05:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-13 17:05:50 +0800 |
commit | e8b46e34769bb1ad974f19ab214f943df8cce072 (patch) | |
tree | 37471b616ac978f48263562b52d3ea3e7a35cd42 /script/vm/compiler.lua | |
parent | ff741df641bbe99a418bb856e14e3ec30bbc08aa (diff) | |
download | lua-language-server-e8b46e34769bb1ad974f19ab214f943df8cce072.zip |
fix
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 5a078e70..7a89cbf4 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1270,7 +1270,7 @@ local compilerSwitch = util.switch() ---@cast key string vm.compileByParentNode(source.node, key, function (src) vm.setNode(source, vm.compileNode(src)) - if src == source and source.value then + if src == source and source.value and source.value.type ~= 'nil' then vm.setNode(source, vm.compileNode(source.value)) end end) |