fix(LuaParser): open only needed libs

This commit is contained in:
Titanium Brain 2026-07-11 12:04:40 +01:00
commit 9dac5c8700

View file

@ -158,7 +158,11 @@ pub fn LuaParser(comptime Struct: type) type {
var lua: *Lua = try .init(allocator);
defer lua.deinit();
lua.openLibs();
lua.openBase();
lua.openBit();
lua.openMath();
lua.openString();
lua.openTable();
// convert to sentinel terminated slice
const spath: [:0]const u8 = try allocator.dupeSentinel(u8, path, 0);