Ok yes I see the changes to luaE_resetthread and that explains it, in particular the removal of this line:
- L->status = cast_byte(status);
My tests pass again when I reinstate that line. If you need any more info from me let me know, but it sounds like we understand it now.
I guess this is a good change to make, since it seems strange that a thread would retain the error state after reset. That said, I wonder if users are relying on it to detect errors in threads, so I think perhaps at least it should be mentioned in the release notes as a change in behavior resulting from a bug fix.
David