Closed XmiliaH closed 2 months ago
Improve the try catch block.
Currently the try catch block has a bug where mixed return and fallthrough in a try block will always return, even in the fallthrough case.
Furthermore, try blocks did not allow for break, continue, and gotos to jump out of the body.
Now, the try block function will return a return type and up to two extra results for the one and two argument returns. Some of the return types are
nil
table.pack(...)
This was probably already some of the most cursed code, and this is definitely not making it any less cursed, but tests are passing, so it "looks good to me".
Improve the try catch block.
Currently the try catch block has a bug where mixed return and fallthrough in a try block will always return, even in the fallthrough case.
Furthermore, try blocks did not allow for break, continue, and gotos to jump out of the body.
Now, the try block function will return a return type and up to two extra results for the one and two argument returns. Some of the return types are
nil
: Fallthrough of the try blocktable.pack(...)
.