summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-23 00:13:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-23 00:13:17 +0800
commit6e00db5b51646ad91c5ee5598897cad7f8d65915 (patch)
treeab69316dc9eb03f30fb7a5301f634c96cafa61ae /script/vm
parentb869212f67188176c904f4ea5b47ae94e90e747f (diff)
downloadlua-language-server-6e00db5b51646ad91c5ee5598897cad7f8d65915.zip
avoid circle compile
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/compiler.lua2
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