github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/lib/base/lua/getmetatable.lua (about)

     1  do
     2      local function test(...)
     3          print(pcall(getmetatable, ...))
     4      end
     5  
     6      test(1)
     7      --> =true	nil
     8  
     9      test({})
    10      --> =true	nil
    11  
    12      test()
    13      --> ~false\t.*value needed
    14  end