summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
authorKevin Hahn <hahn.kev@gmail.com>2022-08-03 13:59:27 +0700
committerKevin Hahn <hahn.kev@gmail.com>2022-08-03 13:59:27 +0700
commite1c6b8037f59b93257f540f97d2b94a46202cb4c (patch)
tree167aff63c6bc3d181649b57a2155078190f9c5e2 /script/vm
parent34217a363923ea5ac74a2d169f66cced7ad10d1a (diff)
downloadlua-language-server-e1c6b8037f59b93257f540f97d2b94a46202cb4c.zip
fix minor bug in getObjectFunctionValue
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/vm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/vm.lua b/script/vm/vm.lua
index b9eccfa3..5437b632 100644
--- a/script/vm/vm.lua
+++ b/script/vm/vm.lua
@@ -75,7 +75,7 @@ function m.getObjectFunctionValue(source)
if value.type == 'getlocal' then
return m.getObjectFunctionValue(value.node)
end
- return nil
+ return value
end
m.cacheTracker = setmetatable({}, weakMT)