Browse Source

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

Mike Pall 8 years ago
parent
commit
1973807480
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lib_jit.c

+ 1 - 0
src/lib_jit.c

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