summaryrefslogtreecommitdiff
path: root/script-beta/vm/getGlobals.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-25 15:01:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-25 15:01:34 +0800
commit123f9d3647c464a6a38cbf90e5accf39c8fb40ba (patch)
tree491059fa03a102a82999afd47defa290396394f8 /script-beta/vm/getGlobals.lua
parent1e11d151c29b1e107c09ef694ed9fe2d929b6fc9 (diff)
downloadlua-language-server-123f9d3647c464a6a38cbf90e5accf39c8fb40ba.zip
解耦
Diffstat (limited to 'script-beta/vm/getGlobals.lua')
-rw-r--r--script-beta/vm/getGlobals.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/vm/getGlobals.lua b/script-beta/vm/getGlobals.lua
index 8ac63090..adc6c9fc 100644
--- a/script-beta/vm/getGlobals.lua
+++ b/script-beta/vm/getGlobals.lua
@@ -35,11 +35,11 @@ local function getGlobals(name)
end
function vm.getGlobals(name)
- local cache = vm.cache.getGlobals[name]
+ local cache = vm.getCache('getGlobals')[name]
if cache ~= nil then
return cache
end
cache = getGlobals(name)
- vm.cache.getGlobals[name] = cache
+ vm.getCache('getGlobals')[name] = cache
return cache
end