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) {