diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-12 15:51:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-12 15:51:16 -0300 |
commit | c931d86e98da320c71da70c16d44aa28e9755520 (patch) | |
tree | 2c73ee84120f8f7983d883b3f46546e0676f6ba6 /lstate.c | |
parent | d9e0f64a5de699a620771af299ea22f522c72f19 (diff) | |
download | lua-c931d86e98da320c71da70c16d44aa28e9755520.tar.gz lua-c931d86e98da320c71da70c16d44aa28e9755520.tar.bz2 lua-c931d86e98da320c71da70c16d44aa28e9755520.zip |
'luaD_seterrorobj' should not raise errors
This function can be called unprotected, so it should not raise any
kind of errors. (It could raise a memory-allocation error when creating
a message).
Diffstat (limited to '')
-rw-r--r-- | lstate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -132,7 +132,7 @@ void luaE_checkcstack (lua_State *L) { | |||
132 | if (getCcalls(L) == LUAI_MAXCCALLS) | 132 | if (getCcalls(L) == LUAI_MAXCCALLS) |
133 | luaG_runerror(L, "C stack overflow"); | 133 | luaG_runerror(L, "C stack overflow"); |
134 | else if (getCcalls(L) >= (LUAI_MAXCCALLS / 10 * 11)) | 134 | else if (getCcalls(L) >= (LUAI_MAXCCALLS / 10 * 11)) |
135 | luaD_throw(L, LUA_ERRERR); /* error while handling stack error */ | 135 | luaD_errerr(L); /* error while handling stack error */ |
136 | } | 136 | } |
137 | 137 | ||
138 | 138 | ||