Ignore:
Timestamp:
Nov 3, 2015, 2:36:20 AM (10 years ago)
Author:
Yusuke Suzuki
Message:

Clean up ENABLE(ES6_ARROWFUNCTION_SYNTAX) ifdefs and keep minimal set of them
https://bugs.webkit.org/show_bug.cgi?id=150793

Reviewed by Darin Adler.

Fix the !ENABLE(ES6_ARROWFUNCTION_SYNTAX) build after r191875.
This patch drops many ENABLE(ES6_ARROWFUNCTION_SYNTAX) ifdefs and keep only one of them;
the ifdef in parseAssignmentExpression.
This prevents functionality of parsing arrow function syntax.

  • parser/Lexer.cpp:

(JSC::Lexer<T>::lex):

  • parser/Parser.cpp:

(JSC::Parser<LexerType>::parseInner): Deleted.

  • parser/Parser.h:

(JSC::Parser::isArrowFunctionParamters): Deleted.

  • parser/ParserTokens.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r191875 r191946  
    251251        m_parameters = functionInfo.parameters;
    252252
    253 #if ENABLE(ES6_ARROWFUNCTION_SYNTAX)
    254253        if (parseMode == SourceParseMode::ArrowFunctionMode && !hasError()) {
    255254            // The only way we could have an error wile reparsing is if we run out of stack space.
     
    258257            isArrowFunctionBodyExpression = !match(OPENBRACE);
    259258        }
    260 #endif
    261259    }
    262260
Note: See TracChangeset for help on using the changeset viewer.