summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script-beta/library.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/script-beta/library.lua b/script-beta/library.lua
index a1416fb4..6b67e0a7 100644
--- a/script-beta/library.lua
+++ b/script-beta/library.lua
@@ -272,11 +272,11 @@ end
local function init()
local lang = require 'language'
local id = lang.id
- m.global = {}
- m.library = {}
- m.object = {}
- m.other = {}
- m.custom = {}
+ m.global = util.container()
+ m.library = util.container()
+ m.object = util.container()
+ m.other = util.container()
+ m.custom = util.container()
for libPath in (ROOT / 'libs'):list_directory() do
local libName = libPath:filename():string()
@@ -284,7 +284,7 @@ local function init()
local libs
local buf = util.loadFile(path:string())
if buf then
- libs = {}
+ libs = util.container()
xpcall(lni, log.error, buf, path:string(), {libs})
fix(libs)
end