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/Lexer.cpp

    r191355 r191946  
    18511851        break;
    18521852    case CharacterEqual: {
    1853 #if ENABLE(ES6_ARROWFUNCTION_SYNTAX)
    18541853        if (peek(1) == '>') {
    18551854            token = ARROWFUNCTION;
     
    18621861            break;
    18631862        }
    1864 #endif
     1863
    18651864        shift();
    18661865        if (m_current == '=') {
Note: See TracChangeset for help on using the changeset viewer.