Remove broken check in checkFunctionNameAndParams (#7473)
This commit is contained in:
parent
41bf66bca2
commit
ae0df86340
@ -1677,11 +1677,7 @@ export default class ExpressionParser extends LValParser {
|
|||||||
|
|
||||||
const oldStrict = this.state.strict;
|
const oldStrict = this.state.strict;
|
||||||
if (isStrict) this.state.strict = isStrict;
|
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) {
|
if (checkLVal) {
|
||||||
const nameHash: any = Object.create(null);
|
const nameHash: any = Object.create(null);
|
||||||
if (node.id) {
|
if (node.id) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user