From ae0df86340086f2c9e7081921c93b41d1452ddfe Mon Sep 17 00:00:00 2001 From: K Sashi Kumar Date: Sun, 4 Mar 2018 21:04:16 +0530 Subject: [PATCH] Remove broken check in checkFunctionNameAndParams (#7473) --- packages/babylon/src/parser/expression.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/babylon/src/parser/expression.js b/packages/babylon/src/parser/expression.js index 71b1e254c7..73dc458d0e 100644 --- a/packages/babylon/src/parser/expression.js +++ b/packages/babylon/src/parser/expression.js @@ -1677,11 +1677,7 @@ export default class ExpressionParser extends LValParser { const oldStrict = this.state.strict; if (isStrict) this.state.strict = isStrict; - if (node.id) { - // TODO(logan): This check is broken because it passes a node object as - // a binding name. Passing the actual string introduces other failures. - // this.checkReservedWord(node.id, node.start, true, true); - } + if (checkLVal) { const nameHash: any = Object.create(null); if (node.id) {