I wrote:
> [email protected] wrote:
>> 3) It compiles in JScript.Net if eqRe is defined as /\=/g instead of
>> /=/g (!).
> 
> Can you tell whether JScript.Net is failing to parse an unquoted = in
> regexp literals in all cases, or is it treating it as some undocumented
> extension (which happens to produce an error in this case)?

Oh, I bet I know what the bug is: it's probably tokenising /= as a
division-assignment too early.

I don't have a copy of JScript.Net installed, but the following
test should confirm or refute this theory:

/a=/g should parse as expected.
Any regexp literal starting /= should fail to parse.

-- 
David-Sarah Hopwood ⚥

Reply via email to