Reduce context parameter

Brandon Benvie brandon at brandonbenvie.com
Tue Jan 8 03:47:19 PST 2013


As I said: 'undefined' and 'not provided' have a complex relationship in
the ES spec. The ship has sailed, but the turd is the shiniest turd you've
ever seen.

On Tuesday, January 8, 2013, Peter van der Zee wrote:

> On Mon, Jan 7, 2013 at 11:59 PM, Rick Waldron <waldron.rick at gmail.com<javascript:;>>
> wrote:
> > The initialVal argument is _optional_ and undefined is valid — how would
> you
> > decide if what was passed should be initial value or thisArg?
>
> I see. Well, ship has sailed. Thanks.
>
> - peter
>
> ...(Could have specced the context parameter to be second, to be
> ignored if undefined, and the accumulator third.)
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org <javascript:;>
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130108/2f3fb584/attachment.html>


More information about the es-discuss mailing list