summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-20 13:50:00 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-20 13:50:00 -0200
commit3d19aee78f7f9140548bd550559092eeff837409 (patch)
tree0857028384f4d187e93891162033bee3173ac723
parent4194de70e72cd7048872463308f5a9a34bf994dc (diff)
downloadlua-3d19aee78f7f9140548bd550559092eeff837409.tar.gz
lua-3d19aee78f7f9140548bd550559092eeff837409.tar.bz2
lua-3d19aee78f7f9140548bd550559092eeff837409.zip
`luac' may generate code without upvalue names
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index fa88ffbd..ca1f5410 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.10 2004/10/07 17:27:00 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.11 2004/12/03 20:35:33 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -477,7 +477,7 @@ static const char *getobjname (CallInfo *ci, int stackpos, const char **name) {
477 } 477 }
478 case OP_GETUPVAL: { 478 case OP_GETUPVAL: {
479 int u = GETARG_B(i); /* upvalue index */ 479 int u = GETARG_B(i); /* upvalue index */
480 *name = getstr(p->upvalues[u]); 480 *name = p->upvalues ? getstr(p->upvalues[u]) : "?";
481 return "upvalue"; 481 return "upvalue";
482 } 482 }
483 case OP_SELF: { 483 case OP_SELF: {