diff options
author | Mike Pall <mike> | 2016-12-15 22:45:28 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2016-12-15 22:45:28 +0100 |
commit | fb61f7cbe3ec983dfc9087bde04496aa4bbaa31b (patch) | |
tree | 65cea535cedc6daaac51c296a68a905d219b2775 | |
parent | c3cae04153213d9779c5563056b017a19da2d283 (diff) | |
download | luajit-fb61f7cbe3ec983dfc9087bde04496aa4bbaa31b.tar.gz luajit-fb61f7cbe3ec983dfc9087bde04496aa4bbaa31b.tar.bz2 luajit-fb61f7cbe3ec983dfc9087bde04496aa4bbaa31b.zip |
Add "proto" field to jit.util.funcinfo().
Backport.
-rw-r--r-- | src/lib_jit.c | 1 |
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; |