lua_len: invoke __len metamethod for tables7/head
commit3881e1a9d862657b00a5b782baa435141314b7af
authoru3shit <u3shit@gmail.com>
Sat, 25 Feb 2017 17:33:00 +0000 (25 18:33 +0100)
committeru3shit <u3shit@gmail.com>
Sat, 25 Feb 2017 17:53:11 +0000 (25 18:53 +0100)
tree060047fec4a9d8cba4bc0327517b22c342e5ac2a
parentfe8bdfb7bf0a19e4414f095334e9ccb1b36c27d3
lua_len: invoke __len metamethod for tables

Since Lua 5.2. Luajit already does it for # operator in lua with
LUAJIT_ENABLE_LUA52COMPAT, but not in lua_len.
src/lj_api.c