Skip to content

Commit

Permalink
feat: add string and math lib for lua
Browse files Browse the repository at this point in the history
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
  • Loading branch information
chaunceyjiang committed Mar 10, 2023
1 parent e4f5b62 commit c395519
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/resourceinterpreter/configurableinterpreter/luavm/lua.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ func (vm *VM) setLib(l *lua.LState) error {
{lua.LoadLibName, lua.OpenPackage},
{lua.BaseLibName, lua.OpenBase},
{lua.TabLibName, lua.OpenTable},
{lua.StringLibName, lua.OpenString},
{lua.MathLibName, lua.OpenMath},
// load our 'safe' version of the OS library
{lua.OsLibName, lifted.OpenSafeOs},
} {
Expand Down

0 comments on commit c395519

Please sign in to comment.