summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-10-17 10:44:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-10-17 10:44:42 -0300
commitbd96330d037660d9a1769c6c0d989f017e5f0278 (patch)
treec3f4580c628a71f512b057b7f52987153cb88d74 /ltests.c
parent4cd1f4aac01184765818e0cebf02da454ccf6590 (diff)
downloadlua-github-bd96330d037660d9a1769c6c0d989f017e5f0278.tar.gz
First "complete" implementation of to-be-closed variables
Still missing: - handling of memory errors when creating upvalue (must run closing method all the same) - interaction with coroutines
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index ff962543..a6968653 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1208,7 +1208,7 @@ static int getindex_aux (lua_State *L, lua_State *L1, const char **pc) {
static void pushcode (lua_State *L, int code) {
static const char *const codes[] = {"OK", "YIELD", "ERRRUN",
- "ERRSYNTAX", "ERRMEM", "ERRGCMM", "ERRERR"};
+ "ERRSYNTAX", MEMERRMSG, "ERRGCMM", "ERRERR"};
lua_pushstring(L, codes[code]);
}