diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-20 09:34:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-20 09:34:13 +0800 |
commit | 1e8fd4412e151d2e02b3f3744f667e508cb20735 (patch) | |
tree | 5a3442791ff1c67ca03b7593ec54262b3d42454f /server/src/vm/vm.lua | |
parent | 01baacfd67d143d21f21f380eb55aa04b68167d6 (diff) | |
download | lua-language-server-1e8fd4412e151d2e02b3f3744f667e508cb20735.zip |
整理代码
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r-- | server/src/vm/vm.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index ef939c79..4aa3fd3c 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -1138,7 +1138,7 @@ function mt:createEnvironment(ast) -- 全局变量`_G` local global = buildGlobal(self.lsp) -- 隐藏的上值`_ENV` - local env = self:createLocal('_ENV', sourceMgr.dummy(), global) + local env = self:createLocal('_ENV', self:getDefaultSource(), global) env:set('hide', true) self.env = env end |