Are function arguments with the value `undefined` present?

2013-05-31 Thread Till Schneidereit
I couldn't find any precise definition for the spec term present, so this is not entirely clear to me. Example: In step 7 of 15.4.3.21 Array.prototype.reduce, a TypeError must be thrown if the optional argument `initialValue` isn't present. If a value of `undefined` does *not* cause the argument

Re: Are function arguments with the value `undefined` present?

2013-05-31 Thread David Bruant
Hi Till, I believe Boris Zbarski touched on this recently at http://lists.w3.org/Archives/Public/public-script-coord/2013AprJun/0428.html (I haven't read the full thread, so can't tell what the conclusion were, but it's probably worth checking out) David Le 31/05/2013 04:33, Till

Re: Are function arguments with the value `undefined` present?

2013-05-31 Thread Till Schneidereit
Hi David, ah, thanks. That is indeed what I was looking for. Sadly, it isn't entirely clear to me that any sort of real conclusion has been reached. thanks, till On Fri, May 31, 2013 at 4:23 PM, David Bruant bruan...@gmail.com wrote: Hi Till, I believe Boris Zbarski touched on this

Re: Are function arguments with the value `undefined` present?

2013-05-31 Thread Rick Waldron
On Fri, May 31, 2013 at 7:33 AM, Till Schneidereit tschneider...@gmail.comwrote: I couldn't find any precise definition for the spec term present, so this is not entirely clear to me. Example: In step 7 of 15.4.3.21 Array.prototype.reduce, a TypeError must be thrown if the optional argument

Re: Are function arguments with the value `undefined` present?

2013-05-31 Thread Till Schneidereit
On Fri, May 31, 2013 at 5:01 PM, Rick Waldron waldron.r...@gmail.comwrote: `undefined` is a valid initial value for Array.prototype.reduce. `undefined` will also trigger the default parameter, so this works until nothing is provided, which breaks Step 10. I guess that's what my question