mfikes / esprit

ClojureScript on the ESP32 using Espruino
Eclipse Public License 2.0
138 stars 13 forks source link

Return value of write calls not properly handled #3

Open mfikes opened 4 years ago

mfikes commented 4 years ago
cljs.user=> (.write js/D21 false)
ReferenceError: "0" is not defined
 at line 13 col 7
throw e__6755__auto__;
      ^
in function called from line 14 col 5
}})()
   ^
at line 1 col 89
...tus:"success",value:eval(d)}}catch(f){var a=f;return{status:...

Workaround:

(do (.write js/D21 false) nil)
kiranshila commented 4 years ago

Fixed in #26