Does it work if you do Puck.eval('1+1' - without the semicolon? The idea is it's executed as an expression so a semicolon might confuse matters.
Looks like the code was causing an exception, the U is probably the U from Uncaught .... I wonder what the best way of reporting that back to the user of the library would be?
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.
Does it work if you do
Puck.eval('1+1'
- without the semicolon? The idea is it's executed as an expression so a semicolon might confuse matters.Looks like the code was causing an exception, the
U
is probably theU
fromUncaught ...
. I wonder what the best way of reporting that back to the user of the library would be?