Skip to content

Commit 8f1c042

Browse files
committed
Update the default export.gatherGlobals() to use the new vm.getExportableGlobals() function instead
1 parent c0d0767 commit 8f1c042

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

script/cli/doc/export.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,12 @@ end
274274
---@async
275275
---@return table globals
276276
function export.gatherGlobals()
277-
local all_globals = vm.getAllGlobals()
278-
local globals = {}
279-
for _, g in pairs(all_globals) do
280-
table.insert(globals, g)
277+
local globalsMap = vm.getExportableGlobals()
278+
local globalsTable = {}
279+
for _, g in pairs(globalsMap) do
280+
table.insert(globalsTable, g)
281281
end
282-
return globals
282+
return globalsTable
283283
end
284284

285285
---builds a lua table of based on `globals` and their elements

0 commit comments

Comments
 (0)