- What version of GopherLua are you using? : master (75f4976) and v1.1.1
- What version of Go are you using? : 1.26.2
- What operating system and processor architecture are you using? : darwin/arm64
- What did you do? :
print(type(collectgarbage("count")), select("#", collectgarbage("count")))
print(collectgarbage("setpause", 150))
- What did you expect to see? : Lua 5.1.5:
- What did you see instead? :
bad argument #1 to type (value expected)
baseCollectGarbage always runs runtime.GC() and returns no value, whatever the option. collectgarbage("count") is the usual way scripts report their memory (for example collectgarbage("count") * 1024), and it fails. Invalid options are not reported either.
baseCollectGarbagealways runsruntime.GC()and returns no value, whatever the option.collectgarbage("count")is the usual way scripts report their memory (for examplecollectgarbage("count") * 1024), and it fails. Invalid options are not reported either.