summaryrefslogtreecommitdiff
path: root/script-beta/vm/getGlobals.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/vm/getGlobals.lua')
-rw-r--r--script-beta/vm/getGlobals.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/vm/getGlobals.lua b/script-beta/vm/getGlobals.lua
index ec575e8e..8ac63090 100644
--- a/script-beta/vm/getGlobals.lua
+++ b/script-beta/vm/getGlobals.lua
@@ -11,7 +11,7 @@ local function getGlobalsOfFile(uri)
local env = guide.getENV(ast.ast)
local results = guide.requestFields(env)
for _, res in ipairs(results) do
- local name = guide.getName(res)
+ local name = guide.getSimpleName(res)
if not globals[name] then
globals[name] = {}
end