It seems not the backslashes in comments were causing the problem. Rather,
it is the carriage-return character '\r' that fails the parser. For example,
parse('/*\n*/a=1'); // parsed just fine
parse('/*\r\n*/a=1'); // fails
Yan Huang
On Sun, Oct 11, 2009 at 4:18 PM, Blake Kaplan <
mrbkap@...> wrote:
> Blake Kaplan <
mrbkap@...> wrote:
> > It looks like this is a bug (I don't see the regexp matcher allowing
> > backslashes in regexps). Can you report this at bugzilla.mozilla.org in
> the
> > "Core" product and the "JavaScript Engine" component?
>
> Uh, of course when I said "RegExp" I meant "comment." Oops.
> --
> Blake Kaplan
> _______________________________________________
> dev-tech-js-engine mailing list
>
dev-tech-js-engine@...
>
https://lists.mozilla.org/listinfo/dev-tech-js-engine>
_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine