From aeb0cfcbbe9a32c1b0781f92a2311a08f2841635 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 28 Mar 2015 03:59:01 +1100 Subject: [PATCH] remove es7.classProperties check from parser --- src/statement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statement.js b/src/statement.js index 918b5e2016..a4e9baa063 100755 --- a/src/statement.js +++ b/src/statement.js @@ -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