Unify (Pre)Parser::ParseTryStatement.
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Feb 2014 08:45:13 +0000 (08:45 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Feb 2014 08:45:13 +0000 (08:45 +0000)
commitff1c294cf90845302fb4647596c835dae1095a76
treef3e2d52f1f0383a3519816ff2eae35213e2262de
parent7744134643763b65d07b41c554a34acb2e3d4b93
Unify (Pre)Parser::ParseTryStatement.

Notes:
- This makes Parser and PreParser produce the same errors with the added test
cases (this was not the case before).
- ParseBlock already does Expect(Token::LBRACE), so no need to check it twice.

BUG=v8:3126
LOG=N
R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/148233011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19212 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
src/preparser.cc
test/cctest/test-parsing.cc