Skip to content

Commit

Permalink
Add "proto" field to jit.util.funcinfo().
Browse files Browse the repository at this point in the history
Backport.
  • Loading branch information
Mike Pall committed Dec 15, 2016
1 parent c3cae04 commit fb61f7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib_jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,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;
Expand Down

0 comments on commit fb61f7c

Please sign in to comment.