summaryrefslogtreecommitdiff
path: root/server/src/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-19 15:29:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-19 15:29:55 +0800
commite591cd30fc0a7ab992ca25a909f562d75df06c70 (patch)
tree0129acc062c4234cd2b0ec713620e19f4da70eff /server/src/vm
parent1fe0691e0614875e90e6078e20e332818b6dcabd (diff)
downloadlua-language-server-e591cd30fc0a7ab992ca25a909f562d75df06c70.zip
修正一个报错
Diffstat (limited to 'server/src/vm')
-rw-r--r--server/src/vm/vm.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index edf70c30..ef939c79 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -914,6 +914,7 @@ function mt:doFunction(action)
local value = self:buildFunction(action)
local source = name[#name]
self:instantSource(source)
+ source:set('parent', parent)
source:set('object', parent)
if source.type == 'index' then
local index = self:getIndex(source)