You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Ok, a bunch of these are now fixed. Your bug with for (i in foo) is actually to do with the way the Web IDE sends data to Espruino. We've got a bug open for it, and there's another one open in Espruino itself.

    If you write it in the console it's much more obvious what the problem is, because as you hit enter after the first line, Espruino executes it.

    if (false)
      console.log("No!");
    if (false)
    {
      console.log("No!");
    }
    

    Both print No!, but the following work:

    if (false) console.log("No!");
    if (false) {
      console.log("No!");
    }
    

    And the Web IDE does basically just paste code into the console, when it ought to do something a bit more interesting.

About

Avatar for Gordon @Gordon started