diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-15 20:01:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-15 20:01:52 +0800 |
commit | 870cc7105a7f0ac070c8fe883126506aaf00b266 (patch) | |
tree | 0badc8781c8931bcdd659fababb0bfa0fe875577 /script/vm/compiler.lua | |
parent | 6437d9c62d577f68ddc40f666a983ce8dde05e4a (diff) | |
download | lua-language-server-870cc7105a7f0ac070c8fe883126506aaf00b266.zip |
fix runtime error
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 7fc4f57b..1efe8abb 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -373,7 +373,8 @@ function vm.getClassFields(suri, object, key, ref, pushResult) local fieldKey = guide.getKeyName(field) if fieldKey and not searchedFields[fieldKey] then if not searchedFields[fieldKey] - and guide.isSet(field) then + and guide.isSet(field) + and field.value then if guide.isLiteral(field.value) then hasFounded[fieldKey] = true end |