archives

« Bugzilla Issues Index

#2581 — 14.1.5 Definition for ExpectedArgumentCount seems to have a typo


In chapter 14.1.5, definition for ExpectedArgumentCount it is said as a note that,

The ExpectedArgumentCount of a FormalParameterList is the number of FormalParameters to the left of either the rest parameter or the first FormalParameter with an Initialiser.

But then the definition for the production FormalsList is defined like this,

FormalsList : FormalParameter
1. If HasInitialiser of FormalParameter is false return 0
2. Return 1.

Shouldn't it be saying “... of FormalParameter is true…”?


fixed in rev23 editor's draft


fixed in rev23 draft