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
*/
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working 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:Uncaught SyntaxError: Got UNFINISHED REGEX expected EOF
It seems that
/*//
are interpreted by the REGEX, isn't it?