From f9d29b0c442447ebe429bcaad1e2b4bf13c5dc93 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 21 Dec 2020 15:21:45 -0300 Subject: Upvalues removed from 'openupval' before being closed Undo commit c220b0a5d0: '__close' is not called again in case of errors. (Upvalue is removed from the list before the call.) The common error that justified that change was C stack overflows, which are much rarer with the stackless implementation. --- manual/manual.of | 1 - 1 file changed, 1 deletion(-) (limited to 'manual') diff --git a/manual/manual.of b/manual/manual.of index 164e359a..5d0c35cf 100644 --- a/manual/manual.of +++ b/manual/manual.of @@ -1630,7 +1630,6 @@ they are closed in the reverse order that they were declared. If there is any error while running a closing method, that error is handled like an error in the regular code where the variable was defined. -However, Lua may call the method one more time. After an error, the other pending closing methods will still be called. -- cgit v1.2.3-55-g6feb