| Index: src/parsing/preparser.h
|
| diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
|
| index ddc74c53180867f6fb679e7aeaffe5ce90ca0673..9b40af13570fe403a6ad1883b7c5045152766868 100644
|
| --- a/src/parsing/preparser.h
|
| +++ b/src/parsing/preparser.h
|
| @@ -825,7 +825,6 @@ class PreParser : public ParserBase<PreParser> {
|
| Statement ParseClassDeclaration(ZoneList<const AstRawString*>* names,
|
| bool default_export, bool* ok);
|
| Statement ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok);
|
| - Statement ParseTryStatement(bool* ok);
|
| Expression ParseConditionalExpression(bool accept_IN, bool* ok);
|
| Expression ParseObjectLiteral(bool* ok);
|
|
|
| @@ -946,6 +945,13 @@ class PreParser : public ParserBase<PreParser> {
|
| PreParserStatementList cases, Scope* scope) {
|
| return PreParserStatement::Default();
|
| }
|
| + V8_INLINE void RewriteCatchPattern(CatchInfo* catch_info, bool* ok) {}
|
| + V8_INLINE void ValidateCatchBlock(const CatchInfo& catch_info, bool* ok) {}
|
| + V8_INLINE PreParserStatement RewriteTryStatement(
|
| + PreParserStatement try_block, PreParserStatement catch_block,
|
| + PreParserStatement finally_block, const CatchInfo& catch_info, int pos) {
|
| + return PreParserStatement::Default();
|
| + }
|
|
|
| V8_INLINE PreParserExpression RewriteDoExpression(PreParserStatement body,
|
| int pos, bool* ok) {
|
| @@ -1180,7 +1186,7 @@ class PreParser : public ParserBase<PreParser> {
|
| }
|
|
|
| V8_INLINE static PreParserStatement NullStatement() {
|
| - return PreParserStatement::Default();
|
| + return PreParserStatement::Null();
|
| }
|
|
|
| V8_INLINE bool IsNullStatement(PreParserStatement stmt) {
|
| @@ -1192,7 +1198,7 @@ class PreParser : public ParserBase<PreParser> {
|
| }
|
|
|
| V8_INLINE static PreParserStatement NullBlock() {
|
| - return PreParserStatement::Default();
|
| + return PreParserStatement::Null();
|
| }
|
|
|
| V8_INLINE PreParserIdentifier EmptyIdentifierString() const {
|
|
|