mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-27 16:03:23 +00:00
fix: use correct function names
This commit is contained in:
parent
702c75c0c2
commit
5ca534d4e5
@ -31,7 +31,7 @@ func loaderFunc(rtm *rt.Runtime) (rt.Value, func()) {
|
||||
snailMeta := rt.NewTable()
|
||||
snailMethods := rt.NewTable()
|
||||
snailFuncs := map[string]util.LuaExport{
|
||||
"run": {srun, 3, false},
|
||||
"run": {snailrun, 3, false},
|
||||
}
|
||||
util.SetExports(rtm, snailMethods, snailFuncs)
|
||||
|
||||
@ -45,7 +45,7 @@ func loaderFunc(rtm *rt.Runtime) (rt.Value, func()) {
|
||||
rtm.SetRegistry(snailMetaKey, rt.TableValue(snailMeta))
|
||||
|
||||
exports := map[string]util.LuaExport{
|
||||
"new": util.LuaExport{snew, 0, false},
|
||||
"new": util.LuaExport{snailnew, 0, false},
|
||||
}
|
||||
|
||||
mod := rt.NewTable()
|
||||
|
Loading…
x
Reference in New Issue
Block a user