We should really move fully over to jsException(JSET_ERROR and kill jsError eventually... jsError was used before Espruino had Exceptions, and it's not part of the JavaScript spec at all.
I'm afraid it's just a bit of a hangover. There are other error types though - TypeError (invalid arguments) and InternalError (stuff that went wrong in Espruino) might be the most useful.
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.
We should really move fully over to
jsException(JSET_ERROR
and kill jsError eventually...jsError
was used before Espruino had Exceptions, and it's not part of the JavaScript spec at all.I'm afraid it's just a bit of a hangover. There are other error types though - TypeError (invalid arguments) and InternalError (stuff that went wrong in Espruino) might be the most useful.