diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-21 15:21:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-21 15:21:45 -0300 |
commit | f9d29b0c442447ebe429bcaad1e2b4bf13c5dc93 (patch) | |
tree | 05864d5bb96e6efe207e7d7eeff0fd251494562b /manual | |
parent | 409256b7849ec5ab3296cb0ab9eba3d65955d5ea (diff) | |
download | lua-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.of | 1 |
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. | |||
1630 | If there is any error while running a closing method, | 1630 | If there is any error while running a closing method, |
1631 | that error is handled like an error in the regular code | 1631 | that error is handled like an error in the regular code |
1632 | where the variable was defined. | 1632 | where the variable was defined. |
1633 | However, Lua may call the method one more time. | ||
1634 | 1633 | ||
1635 | After an error, | 1634 | After an error, |
1636 | the other pending closing methods will still be called. | 1635 | the other pending closing methods will still be called. |