> Check https://www.lua.org/source/5.3/lauxlib.c.html#l_alloc > I think this will be in Lua 5.4.2 too. Actually, Lua 5.4.2 handles l_alloc failures and so l_alloc in 5.4 is back to its simpler version. Sorry for the noise.