name anonymous functions on property assignments

T.J. Crowder tj.crowder at farsightsoftware.com
Thu Jan 12 15:30:03 UTC 2017


I'm mistaken about Step 1.e of [assignment evaluation][1], it's not
that we'd want to remove the IsIdentifierRef check, it's that we'd
want to make it "IsIdentifierRef is true or IsPropertyRef is true":

> e. If IsAnonymousFunctionDefinition(AssignmentExpression) is true and either IsIdentifierRef or IsPropertyRef of LeftHandSideExpression is true, then

-- T.J.

[1] https://tc39.github.io/ecma262/#sec-assignment-operators-runtime-semantics-evaluation


More information about the es-discuss mailing list