• @Gordon, absolutely understood, because there is no compiler (if not explicitely said... and if there is or will be, it should behave the same way...)

    ...add hacks for the common ways people do strange formatting...

    me: guilty as charged.

    This case though was not a go for strange formatting, it was to fit neatly in the forum width... Even if something is done in the IDE to detect the issue, passing source code in the Modules.addCached(id,source) would still break... and there actually it happened
    first.

    Remembering the fact that there is no parsing to the end nor elaborate look ahead is good enough for me. Adding more look-ahead is performance counter-productive.

    May be over time some edited reference documentation will come into place to address the core differences between Espruino and (the) other JS execution environments.

About

Avatar for allObjects @allObjects started