Is a JavaScript function call a LeftHandSideExpression, thus an ExpressionStatement?
问题 I'm trying to prove that a simple function call such as window.alert(); is valid EcmaScript 2016 (7th Edition) grammar. Working backward, with the expectation this is an ExpressionStatement , I see that it fits the pattern MemberExpression Arguments which is a CallExpression . And, section 12.3 defines LeftHandSideExpression as possibly a CallExpression . Now, my problem is that section 12.15 AssignmentExpression seems to require that LeftHandSideExpression be followed by either an