Minified code runs into error #312
Replies: 5 comments
-
Posted at 2014-09-01 by @gfwilliams Does it actually output an error message, or it just doesn't work as you expect? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-09-01 by JumJum Error is:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-09-01 by @gfwilliams Hmm. If it's complaining about I wonder if because I switched to using ES6 minification (to allow numbers like |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-09-01 by JumJum Got it running by moving code-part of functions getArea and between into calcGesture. Now it is this:
looks like Espruino does not like the construction to abort the loop.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-09-02 by @gfwilliams Ahh. Labeled break statements. Espruino doesn't support those at the moment - I'm surprised the minifier added them in though! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-09-01 by JumJum
I'm developing a module to recognize simple gestures based on hc-sr04.
Code runs fine, but minified(simple optimization) runs into error, somewhere around calcGesture.
Beta Was this translation helpful? Give feedback.
All reactions