Changeset 250548 in webkit


Ignore:
Timestamp:
Sep 30, 2019 11:14:40 PM (5 years ago)
Author:
achristensen@apple.com
Message:

Rename JSTokenType::EXPORT to EXPORT_ to avoid naming conflict with internal header
https://bugs.webkit.org/show_bug.cgi?id=202385

  • parser/Keywords.table:
  • parser/Parser.cpp:

(JSC::Parser<LexerType>::parseModuleSourceElements):
(JSC::Parser<LexerType>::parseExportDeclaration):

  • parser/ParserTokens.h:
Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r250543 r250548  
     12019-09-30  Alex Christensen  <achristensen@webkit.org>
     2
     3        Rename JSTokenType::EXPORT to EXPORT_ to avoid naming conflict with internal header
     4        https://bugs.webkit.org/show_bug.cgi?id=202385
     5
     6        * parser/Keywords.table:
     7        * parser/Parser.cpp:
     8        (JSC::Parser<LexerType>::parseModuleSourceElements):
     9        (JSC::Parser<LexerType>::parseExportDeclaration):
     10        * parser/ParserTokens.h:
     11
    1122019-09-30  Tadeu Zagallo  <tzagallo@apple.com>
    213
  • trunk/Source/JavaScriptCore/parser/Keywords.table

    r223124 r250548  
    4444# Reserved for future use.
    4545enum            RESERVED
    46 export          EXPORT
     46export          EXPORT_
    4747import          IMPORT
    4848
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r250098 r250548  
    428428        TreeStatement statement = 0;
    429429        switch (m_token.m_type) {
    430         case EXPORT:
     430        case EXPORT_:
    431431            statement = parseExportDeclaration(context);
    432432            if (statement)
     
    33813381{
    33823382    // http://www.ecma-international.org/ecma-262/6.0/#sec-exports
    3383     ASSERT(match(EXPORT));
     3383    ASSERT(match(EXPORT_));
    33843384    JSTokenLocation exportLocation(tokenLocation());
    33853385    next();
  • trunk/Source/JavaScriptCore/parser/ParserTokens.h

    r248829 r250548  
    8686    ELSE,
    8787    IMPORT,
    88     EXPORT,
     88    EXPORT_,
    8989    CLASSTOKEN,
    9090    EXTENDS,
Note: See TracChangeset for help on using the changeset viewer.