diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-23 00:13:17 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-23 00:13:17 +0800 |
commit | 6e00db5b51646ad91c5ee5598897cad7f8d65915 (patch) | |
tree | ab69316dc9eb03f30fb7a5301f634c96cafa61ae /script/vm | |
parent | b869212f67188176c904f4ea5b47ae94e90e747f (diff) | |
download | lua-language-server-6e00db5b51646ad91c5ee5598897cad7f8d65915.zip |
avoid circle compile
Diffstat (limited to 'script/vm')
-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 cebe01cb..8a01cc18 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -976,7 +976,7 @@ local compilerSwitch = util.switch() local runner = vm.createRunner(source) runner:launch(function (src, node) if src.type == 'setlocal' then - if src.value then + if src.value and guide.isLiteral(src.value) then if src.value.type == 'table' then vm.setNode(src, src.value) else |