remove es7.classProperties check from parser

This commit is contained in:
Sebastian McKenzie 2015-03-28 03:59:01 +11:00
parent ddd173a4b3
commit aeb0cfcbbe

View File

@ -481,7 +481,7 @@ pp.parseClass = function(node, isStatement) {
this.takeDecorators(method)
var isGenerator = this.eat(tt.star), isAsync = false
this.parsePropertyName(method)
if (this.options.features["es7.classProperties"] && this.type !== tt.parenL && !method.computed && method.key.type === "Identifier" &&
if (this.type !== tt.parenL && !method.computed && method.key.type === "Identifier" &&
method.key.name === "static") {
if (isGenerator) this.unexpected()
method['static'] = true