Ignore:
Timestamp:
Jan 22, 2015, 3:12:26 PM (10 years ago)
Author:
[email protected]
Message:

Add a build flag for ES6 class syntax
https://bugs.webkit.org/show_bug.cgi?id=140760

Reviewed by Michael Saboff.

.:

  • Source/cmake/WebKitFeatures.cmake:
  • Source/cmakeconfig.h.cmake:

Source/JavaScriptCore:

Added ES6_CLASS_SYNTAX build flag and used it in tokenizer to recognize
"class", "extends", "static" and "super" keywords.

  • Configurations/FeatureDefines.xcconfig:
  • parser/Keywords.table:
  • parser/ParserTokens.h:

Source/WebCore:

  • Configurations/FeatureDefines.xcconfig:

Source/WebKit/mac:

  • Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

  • Configurations/FeatureDefines.xcconfig:

Source/WTF:

  • wtf/FeatureDefines.h:

Tools:

  • Scripts/webkitperl/FeatureList.pm:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/ParserTokens.h

    r170079 r178954  
    7676    DEBUGGER,
    7777    ELSE,
     78#if ENABLE(ES6_CLASS_SYNTAX)
     79    CLASSTOKEN,
     80    EXTENDS,
     81    STATICTOKEN,
     82    SUPER,
     83#else
     84    CLASSTOKEN = RESERVED,
     85    EXTENDS = RESERVED,
     86    STATICTOKEN = RESERVED_IF_STRICT,
     87    SUPER = RESERVED,
     88#endif
    7889    OPENBRACE = 0,
    7990    CLOSEBRACE,
Note: See TracChangeset for help on using the changeset viewer.