summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-24 05:25:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-24 05:25:06 +0800
commit24abcb32ef427ce9ed8501af2a0a01aca42e23cf (patch)
tree1101364b3bf330ac986520fd340509e75a708877 /script/vm
parentb204411a88f4c36be9e9ce2710f03f2a0295e3a6 (diff)
downloadlua-language-server-24abcb32ef427ce9ed8501af2a0a01aca42e23cf.zip
infer by `goto`
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/runner.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/runner.lua b/script/vm/runner.lua
index 2be187c9..75de2c0f 100644
--- a/script/vm/runner.lua
+++ b/script/vm/runner.lua
@@ -192,7 +192,8 @@ function mt:_compileBlock(block)
}
self.steps[#self.steps+1] = blockStep
self:_compileNarrowByFilter(childBlock.filter, outStep, blockStep)
- if not childBlock.returns then
+ if not childBlock.hasReturn
+ and not childBlock.hasGoTo then
finals[#finals+1] = blockStep
end
self.steps[#self.steps+1] = {