http://codereview.chromium.org/6248013/diff/1/src/scanner-base.cc File src/scanner-base.cc (right):
http://codereview.chromium.org/6248013/diff/1/src/scanner-base.cc#newcode742 src/scanner-base.cc:742: if (c0_ == '\\') { // Escape sequence. On 2011/01/21 11:20:20, Lasse Reichstein wrote:
I don't remember off-hand whether we parse the regexp eagerly for
syntax errors,
or if we delay it until it's first executed. If the latter, then we
probably
need to do it earlier for strict code.
ES5.1 Chapter 16 Errors states: An implementation must treat any instance of the following kinds of errors as an early error: [...] • Errors in regular expression literals that are not implementation-defined syntax extensions This is not conditional on strict mode. http://codereview.chromium.org/6248013/ -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
