"static" should not be a reserved keyword in non-strict mode even when ES6 class...
[WebKit-https.git] / Source / JavaScriptCore / ChangeLog
index cd8aa1a0a38e9e1cc2e4a8d261da1741635cb098..46baf571776803f18879f274a6e2cea62bb61917 100644 (file)
@@ -1,3 +1,19 @@
+2015-03-11  Ryosuke Niwa  <rniwa@webkit.org>
+
+        "static" should not be a reserved keyword in non-strict mode even when ES6 class is enabled
+        https://bugs.webkit.org/show_bug.cgi?id=142600
+
+        Reviewed by Mark Lam.
+
+        Make "static" RESERVED_IF_STRICT and manually detect it in parseClass.
+
+        No new tests. This is already checked by js/reserved-words.html and js/keywords-and-reserved_words.html
+
+        * parser/Keywords.table:
+        * parser/Parser.cpp:
+        (JSC::Parser<LexerType>::parseClass):
+        * parser/ParserTokens.h:
+
 2015-03-11  Geoffrey Garen  <ggaren@apple.com>
 
         Many users of Heap::reportExtraMemory* are wrong, causing lots of memory growth