We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0d0767 commit 8f1c042Copy full SHA for 8f1c042
1 file changed
script/cli/doc/export.lua
@@ -274,12 +274,12 @@ end
274
---@async
275
---@return table globals
276
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)
+ local globalsMap = vm.getExportableGlobals()
+ local globalsTable = {}
+ for _, g in pairs(globalsMap) do
+ table.insert(globalsTable, g)
281
end
282
- return globals
+ return globalsTable
283
284
285
---builds a lua table of based on `globals` and their elements
0 commit comments