summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-23 19:50:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-23 19:50:09 +0800
commit4cbbe55a5944e6c4dcaea7028cab65648251951e (patch)
treefef77377ddbcdc1c7ae325161a3b36fac4520832 /script/vm
parent30570630339f3a3ce19329d045ac0eb42627d3b9 (diff)
downloadlua-language-server-4cbbe55a5944e6c4dcaea7028cab65648251951e.zip
fix
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/runner.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/runner.lua b/script/vm/runner.lua
index 026fd983..9384ec01 100644
--- a/script/vm/runner.lua
+++ b/script/vm/runner.lua
@@ -78,7 +78,7 @@ function mt:_compileNarrowByFilter(filter, pos)
break
end
end
- if not loc then
+ if not loc or not exp then
return
end
if exp.type == 'nil' then