diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-15 00:15:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-15 00:15:15 +0800 |
commit | 767db22f89459bad7e466d0e467f72f43f0c2046 (patch) | |
tree | fc4fb1589194709891d9ee188e62c334f1a70a32 /script | |
parent | 54a488b7d5899d412ad37083dca1ef3728a7cdba (diff) | |
download | lua-language-server-767db22f89459bad7e466d0e467f72f43f0c2046.zip |
#1208 fix runtime error
`attempt to concatenate a boolean value (local 'lastKey')`
Diffstat (limited to 'script')
-rw-r--r-- | script/vm/def.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/def.lua b/script/vm/def.lua index accfbb1b..03743826 100644 --- a/script/vm/def.lua +++ b/script/vm/def.lua @@ -85,7 +85,7 @@ local nodeSwitch;nodeSwitch = util.switch() local parentNode = vm.compileNode(source.node) local uri = guide.getUri(source) local key = guide.getKeyName(source) - if not key then + if type(key) ~= 'string' then return end if lastKey then |