diff options
| author | Mike Pall <mike> | 2016-12-13 21:30:13 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2016-12-13 21:30:13 +0100 |
| commit | 197380748052fcc5781fb357d3ac77dcee353004 (patch) | |
| tree | e8fd6ffe7c90340f5ee839ba967b5e29c979809f | |
| parent | 4ccd876a65f7ea4c52a7b44330bc1c279dd8afff (diff) | |
| download | luajit-197380748052fcc5781fb357d3ac77dcee353004.tar.gz luajit-197380748052fcc5781fb357d3ac77dcee353004.tar.bz2 luajit-197380748052fcc5781fb357d3ac77dcee353004.zip | |
Add "proto" field to jit.util.funcinfo().
| -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 592538bd..176488e8 100644 --- a/src/lib_jit.c +++ b/src/lib_jit.c | |||
| @@ -204,6 +204,7 @@ LJLIB_CF(jit_util_funcinfo) | |||
| 204 | lua_setfield(L, -2, "source"); | 204 | lua_setfield(L, -2, "source"); |
| 205 | lj_debug_pushloc(L, pt, pc); | 205 | lj_debug_pushloc(L, pt, pc); |
| 206 | lua_setfield(L, -2, "loc"); | 206 | lua_setfield(L, -2, "loc"); |
| 207 | setprotoV(L, lj_tab_setstr(L, t, lj_str_newlit(L, "proto")), pt); | ||
| 207 | } else { | 208 | } else { |
| 208 | GCfunc *fn = funcV(L->base); | 209 | GCfunc *fn = funcV(L->base); |
| 209 | GCtab *t; | 210 | GCtab *t; |
