RegExp Flags

Kevin Smith zenparsing at gmail.com
Mon Apr 1 21:22:57 PDT 2013


SM and v8 exhibit different behavior when evaluating the following:

false ? /abc/ii : 0;

In v8, no syntax error is thrown, presumably because regular expression
flags are only validated when a RegExp object is created.  In SM, a syntax
error is thrown because flag validation is performed by the scanner.

The current spec seems to lean toward the v8 interpretation.  Thoughts?

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130402/21c446b4/attachment.html>


More information about the es-discuss mailing list