Add "proto" field to jit.util.funcinfo().

This commit is contained in:
Mike Pall 2016-12-13 21:30:13 +01:00
parent 4ccd876a65
commit 1973807480

View File

@ -204,6 +204,7 @@ LJLIB_CF(jit_util_funcinfo)
lua_setfield(L, -2, "source");
lj_debug_pushloc(L, pt, pc);
lua_setfield(L, -2, "loc");
setprotoV(L, lj_tab_setstr(L, t, lj_str_newlit(L, "proto")), pt);
} else {
GCfunc *fn = funcV(L->base);
GCtab *t;