From 0dd32e7d9ce40915080fb87a1bcede9a1a38b168 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 29 Mar 2015 19:30:34 +1100 Subject: [PATCH] fix class decorator methods --- src/acorn/src/statement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()