diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.165 2014/02/15 13:12:01 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.166 2014/02/18 13:46:26 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -322,8 +322,11 @@ static void checkobject (global_State *g, GCObject *o, int maybedead) { | |||
322 | lua_assert(g->gcstate != GCSpause || iswhite(o)); | 322 | lua_assert(g->gcstate != GCSpause || iswhite(o)); |
323 | switch (gch(o)->tt) { | 323 | switch (gch(o)->tt) { |
324 | case LUA_TUSERDATA: { | 324 | case LUA_TUSERDATA: { |
325 | TValue uservalue; | ||
325 | Table *mt = gco2u(o)->metatable; | 326 | Table *mt = gco2u(o)->metatable; |
326 | if (mt) checkobjref(g, o, mt); | 327 | if (mt) checkobjref(g, o, mt); |
328 | getuservalue(g->mainthread, rawgco2u(o), &uservalue); | ||
329 | checkobjref(g, o, &uservalue); | ||
327 | break; | 330 | break; |
328 | } | 331 | } |
329 | case LUA_TTABLE: { | 332 | case LUA_TTABLE: { |