Ignore:
Timestamp:
Jun 28, 2015, 9:18:26 AM (10 years ago)
Author:
[email protected]
Message:

[ES6] Implement ES6 arrow function syntax. No Line terminator between function parameters and =>
https://bugs.webkit.org/show_bug.cgi?id=146394

Source/JavaScriptCore:

Patch by Aleksandr Skachkov <[email protected]> on 2015-06-28
Reviewed by Yusuke Suzuki.

  • parser/Parser.cpp:

(JSC::Parser<LexerType>::parseFunctionInfo):

LayoutTests:

Patch by Skachkov Oleksandr <[email protected]> on 2015-06-28
Reviewed by Yusuke Suzuki.

  • js/arrowfunction-syntax-errors-expected.txt:
  • js/script-tests/arrowfunction-syntax-errors.js:
File:
1 edited

Legend:

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

    r185996 r186047  
    15151515       
    15161516        matchOrFail(ARROWFUNCTION, "Expected a '=>' after arrow function parameter declaration");
     1517       
     1518        if (m_lexer->prevTerminator())
     1519            failDueToUnexpectedToken();
     1520
    15171521        ASSERT(constructorKind == ConstructorKind::None);
    15181522       
Note: See TracChangeset for help on using the changeset viewer.