little bug in the REGEX interpreter?

Posted on
  • I have a declared a function containing some debug code as well as a couple of comments. In addition, I added a comment area enclosed within /* and */. This gives something like that:

    function foo()
    {
      /*//a comment
      var myvar=0;
      //another comment
      */
    }
    

    Uncaught SyntaxError: Got UNFINISHED REGEX expected EOF

    It seems that /*// are interpreted by the REGEX, isn't it?

  • Thanks! That's a really good spot - it's actually not the regex parser at all, it's the block comment handling!

    It treats /*/ as a complete block comment, when actually a complete comment would be /**/

  • Ok, it should be fixed in the latest builds now

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

little bug in the REGEX interpreter?

Posted by Avatar for Jean-Philippe_Rey @Jean-Philippe_Rey

Actions