diff --git a/src/acorn/src/expression.js b/src/acorn/src/expression.js index 6b8e842e8d..b820a6bf64 100755 --- a/src/acorn/src/expression.js +++ b/src/acorn/src/expression.js @@ -635,7 +635,7 @@ pp.parseMethod = function(isGenerator, isAsync) { let node = this.startNode() this.initFunction(node, isAsync) this.expect(tt.parenL) - node.params = this.parseBindingList(tt.parenR, false, false) + node.params = this.parseBindingList(tt.parenR, false, this.options.features["es7.trailingFunctionCommas"]) if (this.options.ecmaVersion >= 6) { node.generator = isGenerator }