More checks and documentation for uses of EXTRA_STACK
This commit is contained in:
1 parent
196bb94d66
commit
d61b0c6028
5 files changed
+47
-13
No files matched your search
@@ -151,6 +151,16 @@ do -- tail calls x varargs
|
||||
end
|
||||
|
||||
|
||||
do -- C-stack overflow while handling C-stack overflow
|
||||
local function loop ()
|
||||
assert(pcall(loop))
|
||||
end
|
||||
|
||||
local err, msg = xpcall(loop, loop)
|
||||
assert(not err and string.find(msg, "error"))
|
||||
end
|
||||
|
||||
|
||||
|
||||
do -- tail calls x chain of __call
|
||||
local n = 10000 -- depth
|
||||
|
||||
Reference in new issue
Block a user