aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-01-24 18:11:26 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-01-24 18:11:26 -0200
commit9744255ae929d11661ae622201a6d627b6403088 (patch)
treef030039e99a1b1a5d368a412fd3b84bfc43d4ea1
parent512b15b6012c14b0b58c4531078d27794a583f84 (diff)
downloadlua-9744255ae929d11661ae622201a6d627b6403088.tar.gz
lua-9744255ae929d11661ae622201a6d627b6403088.tar.bz2
lua-9744255ae929d11661ae622201a6d627b6403088.zip
error in call must be propagated
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index a91d51d6..320d5304 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.4 2000/01/13 16:30:47 roberto Exp roberto $ 2** $Id: ltests.c,v 1.5 2000/01/19 12:00:45 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*/
@@ -182,7 +182,7 @@ static void testC (lua_State *L) {
182 lua_pushobject(L, reg[getreg(L, &pc)]); 182 lua_pushobject(L, reg[getreg(L, &pc)]);
183 } 183 }
184 else if EQ("call") { 184 else if EQ("call") {
185 lua_call(L, getname(&pc)); 185 if (lua_call(L, getname(&pc))) lua_error(L, NULL);
186 } 186 }
187 else if EQ("gettable") { 187 else if EQ("gettable") {
188 reg[getreg(L, &pc)] = lua_gettable(L); 188 reg[getreg(L, &pc)] = lua_gettable(L);