mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-04 04:33:23 +00:00
fix: make snail.run accept correct number of args
This commit is contained in:
parent
68fc973bfb
commit
16ddb85b4f
@ -22,7 +22,7 @@ func loaderFunc(rtm *rt.Runtime) (rt.Value, func()) {
|
||||
snailMeta := rt.NewTable()
|
||||
snailMethods := rt.NewTable()
|
||||
snailFuncs := map[string]util.LuaExport{
|
||||
"run": {srun, 1, false},
|
||||
"run": {srun, 2, false},
|
||||
}
|
||||
util.SetExports(rtm, snailMethods, snailFuncs)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user