summaryrefslogtreecommitdiff
path: root/script/vm/getGlobals.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/getGlobals.lua')
-rw-r--r--script/vm/getGlobals.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/getGlobals.lua b/script/vm/getGlobals.lua
index b9ddedab..8af21d45 100644
--- a/script/vm/getGlobals.lua
+++ b/script/vm/getGlobals.lua
@@ -4,14 +4,14 @@ local guide = require 'parser.guide'
local vm = require 'vm.vm'
local noder = require 'core.noder'
-function vm.hasGlobalSets(name)
+function vm.hasGlobalSets(uri, name)
local id
if type(name) == 'string' then
id = ('def:g:%s%s'):format(noder.STRING_CHAR, name)
else
id = ('def:g:%s'):format(noder.STRING_CHAR, name)
end
- return collector:has(id)
+ return collector:has(uri, id)
end
function vm.getGlobalSets(uri, name)