Exception when testing non-existent property of Uint32Array and bug with throw inside switch() #1149
Replies: 3 comments
-
Posted at 2018-02-25 by mrQ Some more suspicious things... This behaves as expected:
But this
reports some strange error (see 2nd UNCAUGHTEXCEPTION message):
Maybe another topic relates to this: i think that exceptions got lost without any notice when they occured inside a switch statement. i try to come up with some test code for this, too... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-25 by mrQ ok, as promised some sample code to reproduce the second problem when throwing inside a switch statement. without switch(), everything behaves as expected:
adding the switch() brings up some fancy extras:
expected output (tested on chrome):
achieved output:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-26 by @gfwilliams I'll look into the exception on Typed Arrays - it shouldn't complain about it at that point - only when you try and write it. I filed an issue for it here: espruino/Espruino#1351 For your Thanks for the report on the switch as well - I'll have a look at that. There's now an issue filed for it here espruino/Espruino#1352 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-02-25 by mrQ
just a "picture" without words;)
EspruinoWIFI 1v96
Beta Was this translation helpful? Give feedback.
All reactions