• I was getting errors in some minified code (simple minification) and have identified the issue:

    My function had two return statements - one within a loop, the other at the end of the function (sloppy , I know!!).

    This caused the minifier to output a labelled break which isn't supported by Espruino.

    Refactoring the function to have only one return statement solved the issue - hopefully this is of help to someone else.

    (edit: Probably should have been posted this in the Javascript forum)

About

Avatar for DaveNI @DaveNI started