Array.prototype.values() compatibility hazard

Claude Pache claude.pache at gmail.com
Wed Jun 19 00:47:40 PDT 2013


Le 18 juin 2013 à 03:30, Brandon Benvie <bbenvie at mozilla.com> a écrit :

> On 6/17/2013 4:33 PM, Jason Orendorff wrote:
>> Firefox added Array.prototype.values() and immediately ran into compatibility issues.
>> 
>> https://bugzilla.mozilla.org/show_bug.cgi?id=883914
>> https://bugzilla.mozilla.org/show_bug.cgi?id=881782
>> 
>> 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".

Note that they should look after `with(anyArray)` rather than `with(values)`, in order to resolve that issue.

—Claude



More information about the es-discuss mailing list