ES3.1 Draft: Array generics

Douglas Crockford douglas at crockford.com
Tue May 20 07:35:18 PDT 2008


Erik Arvidsson wrote:
> I know for a fact that not passing the thisObject as the third param
> in methods like map etc will break real world applications such as
> Gmail.  If JScript does not follow the defacto standard, developers
> will have to add detection for this anormality.  I think compatibility
> with other browser should be enough for ES3.1 to standardize that the
> thisObject should be passed as the third parameter.

I disagree. Gmail can continue patching Array.prototype as it does now, so 
nothing breaks. But going forward, new applications should be using bind instead 
of a thisoObject.



More information about the Es4-discuss mailing list