Skip to content
Snippets Groups Projects
Commit 3421a3bd authored by Ilya Verbin's avatar Ilya Verbin Committed by Vladimir Davydov
Browse files

lua/fiber: do not raise on printing a dead fiber

An attempt to print a dead fiber raised a fatal error, which is quite
unexpected. This patch updates __tostring metamethod of fiber_object so
that it pushes the "fiber: <fid> (dead)" string instead of the error.
The __serialize metamethod is patched similarly.

Closes #4265

NO_DOC=bugfix
parent bd73a086
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment