I think SM behavior is right to the spec. According to 7.8.5,
> the error must be treated as an early error (Clause 16) And early error should be reported before evaluation of the Program (section 16) > An early error is an error that can be detected and reported prior to the > evaluation of any construct in the Program containing the error. An > implementation must report early errors in a Program prior to the first > evaluation of that Program. On Tue, Apr 2, 2013 at 1:22 PM, Kevin Smith <[email protected]> wrote: > 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 } > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > > -- Regards, Yusuke Suzuki
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

