diff --git a/src/parser/statement.js b/src/parser/statement.js index d2dfce09e2..40bcb56882 100644 --- a/src/parser/statement.js +++ b/src/parser/statement.js @@ -149,7 +149,8 @@ pp.takeDecorators = function (node) { pp.parseDecorators = function (allowExport) { while (this.match(tt.at)) { - this.state.decorators.push(this.parseDecorator()); + let decorator = this.parseDecorator(); + this.state.decorators.push(decorator); } if (allowExport && this.match(tt._export)) {