ES6 class syntax should allow static setters and getters
https://bugs.webkit.org/show_bug.cgi?id=143180
Source/JavaScriptCore:
Reviewed by Filip Pizlo
Apparently I misread the spec when I initially implemented parseClass.
ES6 class syntax allows static getters and setters so just allow that.
* parser/Parser.cpp:
(JSC::Parser<LexerType>::parseClass):
LayoutTests:
Reviewed by Filip Pizlo.
Added test cases.
* js/class-syntax-declaration-expected.txt:
* js/class-syntax-expression-expected.txt:
* js/script-tests/class-syntax-declaration.js:
* js/script-tests/class-syntax-expression.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182218
268f45cc-cd09-0410-ab3c-
d52691b4dbfc