Array.prototype.values() compatibility hazard

Brandon Benvie bbenvie at
Tue Jun 18 14:59:54 PDT 2013

On 6/17/2013 6:30 PM, Brandon Benvie wrote:
> On 6/17/2013 4:33 PM, Jason Orendorff wrote:
>> Firefox added Array.prototype.values() and immediately ran into 
>> compatibility issues.
>> Both bug reports have to do with Sencha Ext JS. I haven't looked 
>> closely yet. It seems `with(values)` appears in Ext.
>> -j
> Looks like the `with` is responsible. When the "values" there is an 
> array, any reference inside the `with` to "values" then becomes 
> "values.values".

The issue appears to affect all the versions of ExtJS I cursorily 
checked (2.x, 3.x, 4.x) and resides in the XTemplate module. It's 
probably a large backward compatibility hazard.

More information about the es-discuss mailing list