Status: New
Owner: ----
New issue 896 by [email protected]: Invalid RegExp reports SyntaxError
as an early error.
http://code.google.com/p/v8/issues/detail?id=896
according to ES5 section 7.8.5, "the error must be treated as an early
error"
example:
function test() {
/(/.test("(");
}
test(); // UNREACHABLE
If /(/ is invalid RegExp Literal and this throws SyntaxError, this
SyntaxError is an early error and should be reported prior to the
evaluation of that Program.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev