diff --git a/src/acorn/src/statement.js b/src/acorn/src/statement.js index a4e9baa063..9ca10174b9 100755 --- a/src/acorn/src/statement.js +++ b/src/acorn/src/statement.js @@ -474,7 +474,7 @@ pp.parseClass = function(node, isStatement) { while (!this.eat(tt.braceR)) { if (this.eat(tt.semi)) continue if (this.type === tt.at) { - this.parseDecorator() + this.decorators.push(this.parseDecorator()) continue; } var method = this.startNode()