diff --git a/internal/server/scripts.go b/internal/server/scripts.go index 657267ab..5f781f80 100644 --- a/internal/server/scripts.go +++ b/internal/server/scripts.go @@ -105,7 +105,6 @@ func (pl *lStatePool) New() *lua.LState { moduleName string moduleFn lua.LGFunction }{ - {lua.LoadLibName, lua.OpenPackage}, {lua.BaseLibName, openBaseSubset}, {lua.TabLibName, lua.OpenTable}, {lua.MathLibName, lua.OpenMath}, @@ -124,9 +123,6 @@ func (pl *lStatePool) New() *lua.LState { } } - // Set package module to Nil so loaders can't be accessed - L.SetGlobal("package", lua.LNil) - getArgs := func(ls *lua.LState) (evalCmd string, args []string) { evalCmd = ls.GetGlobal("EVAL_CMD").String()