• 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?

About