ES3.1 Draft: Array generics

Maciej Stachowiak mjs at
Sat May 31 02:21:41 PDT 2008

On May 20, 2008, at 7:35 AM, Douglas Crockford wrote:

> 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.

I've heard it mentioned that ES3.1 has a "3 out of 4 browsers" rule.  
What exactly is the scope of this rule, and why does it not apply here?


More information about the Es4-discuss mailing list