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.
This commit is contained in:
Roberto Ierusalimschy committed 2020-12-21 15:21:45 -03:00
1 parent 409256b784
commit f9d29b0c44
3 files changed
+31 -26

No files matched your search

-1
View File
@@ -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.