W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

[Bug 23056] Function's length property is inconsistent with EcmaScript

From: <bugzilla@jessica.w3.org>
Date: Sun, 25 Aug 2013 16:08:21 +0000
To: public-script-coord@w3.org
Message-ID: <bug-23056-3890-ZbtPV4vRZJ@http.www.w3.org/Bugs/Public/>

--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> ---
The ES6 spec is a bit unclear here.

In particular, see section in the draft you link to, which explicitly
sets the length to the ExpectedArgumentCount of the ParameterList.  And the
definition of that is on page 201 (section 13.1) and returns:

  the number of FormalParameters to the left of either the rest parameter or
  first FormalParameter with an Initialiser.  A FormalParameter without an
  initialiser is allowed after the first parameter with an initialiser but such
  parameters are considered to be optional with undefined as their default

So it sort of depends on what one means by "optional argument", I guess....  We
should take this to public-script-coord.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Sunday, 25 August 2013 16:08:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:18 UTC