Remove broken check in checkFunctionNameAndParams (#7473)

This commit is contained in:
K Sashi Kumar 2018-03-04 21:04:16 +05:30 committed by Daniel Tschinder
parent 41bf66bca2
commit ae0df86340

View File

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