aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2016-12-15 22:45:28 +0100
committerMike Pall <mike>2016-12-15 22:45:28 +0100
commitfb61f7cbe3ec983dfc9087bde04496aa4bbaa31b (patch)
tree65cea535cedc6daaac51c296a68a905d219b2775
parentc3cae04153213d9779c5563056b017a19da2d283 (diff)
downloadluajit-fb61f7cbe3ec983dfc9087bde04496aa4bbaa31b.tar.gz
luajit-fb61f7cbe3ec983dfc9087bde04496aa4bbaa31b.tar.bz2
luajit-fb61f7cbe3ec983dfc9087bde04496aa4bbaa31b.zip
Add "proto" field to jit.util.funcinfo().
Backport.
-rw-r--r--src/lib_jit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib_jit.c b/src/lib_jit.c
index 921b84c8..868f697c 100644
--- a/src/lib_jit.c
+++ b/src/lib_jit.c
@@ -199,6 +199,7 @@ LJLIB_CF(jit_util_funcinfo)
199 lua_setfield(L, -2, "source"); 199 lua_setfield(L, -2, "source");
200 lj_debug_pushloc(L, pt, pc); 200 lj_debug_pushloc(L, pt, pc);
201 lua_setfield(L, -2, "loc"); 201 lua_setfield(L, -2, "loc");
202 setprotoV(L, lj_tab_setstr(L, t, lj_str_newlit(L, "proto")), pt);
202 } else { 203 } else {
203 GCfunc *fn = funcV(L->base); 204 GCfunc *fn = funcV(L->base);
204 GCtab *t; 205 GCtab *t;