>I2C1.writeTo(0x26,1);console.log("Hello");
WARNING: I2C device not responding
Hello
So it doesn't stop execution. I know 1v61 did and it was a pain, but it should be fixed now...
The plan is to add exceptions in the long term, but as I understand it's a bit of a minefield. While I could implement something very workable quite easily, I think to get a standards compliant implementation is quite hard.
Having said that, standards compliance is probably not such a big issue with that. If you're using exceptions for anything other than error handling, you probably deserve everything you get :)
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.
Are you actually using 1v62? If I do it, I get:
So it doesn't stop execution. I know 1v61 did and it was a pain, but it should be fixed now...
The plan is to add exceptions in the long term, but as I understand it's a bit of a minefield. While I could implement something very workable quite easily, I think to get a standards compliant implementation is quite hard.
Having said that, standards compliance is probably not such a big issue with that. If you're using exceptions for anything other than error handling, you probably deserve everything you get :)