aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-21 15:21:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-21 15:21:45 -0300
commitf9d29b0c442447ebe429bcaad1e2b4bf13c5dc93 (patch)
tree05864d5bb96e6efe207e7d7eeff0fd251494562b /manual
parent409256b7849ec5ab3296cb0ab9eba3d65955d5ea (diff)
downloadlua-f9d29b0c442447ebe429bcaad1e2b4bf13c5dc93.tar.gz
lua-f9d29b0c442447ebe429bcaad1e2b4bf13c5dc93.tar.bz2
lua-f9d29b0c442447ebe429bcaad1e2b4bf13c5dc93.zip
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.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of1
1 files changed, 0 insertions, 1 deletions
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.
1630If there is any error while running a closing method, 1630If there is any error while running a closing method,
1631that error is handled like an error in the regular code 1631that error is handled like an error in the regular code
1632where the variable was defined. 1632where the variable was defined.
1633However, Lua may call the method one more time.
1634 1633
1635After an error, 1634After an error,
1636the other pending closing methods will still be called. 1635the other pending closing methods will still be called.