archives

« Bugzilla Issues Index

#4347 — 17 ECMAScript Standard Built-in Objects: .length for functions without subclause headings?


17 ECMAScript Standard Built-in Objects
---
Every built-in Function object, including constructors, has a length property whose value is an integer.
Unless otherwise specified, this value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional parameters. However, rest parameters
shown using the form “...name” are not included in the default argument count.
---


For example 25.4.1.3.1 Promise Reject Functions and 25.4.1.3.2 Promise Resolve Functions don't have a subclause heading displaying the number of arguments.


fixed in rev39 publication draft

added an explicit length definition in 25.4.1.3.1, 25.4.1.3.2, 25.4.1.5.1, 25.4.4.1.2


(In reply to Allen Wirfs-Brock from comment #1)
> fixed in rev39 publication draft
>
> added an explicit length definition in 25.4.1.3.1, 25.4.1.3.2, 25.4.1.5.1,
> 25.4.4.1.2


Missing? 26.2.2.1.1 Proxy Revocation Functions