Well, yield would happen in the character IO function, when it realised the buffer was getting full? Potentially the interpreter could also check elapsed time when it executed loops as well - which would help to fix the WDT issue.
Things like Loopback overflows will always be a problem I think - even if re-entrant I imagine you could shoot yourself in the foot pretty easily...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Well,
yield
would happen in the character IO function, when it realised the buffer was getting full? Potentially the interpreter could also check elapsed time when it executed loops as well - which would help to fix the WDT issue.Things like Loopback overflows will always be a problem I think - even if re-entrant I imagine you could shoot yourself in the foot pretty easily...