> Le 14 févr. 2014 à 21:46, "C. Scott Ananian" <ecmascr...@cscott.net> a écrit :
> 
> array-likes with negative length

"Array-likes with negative length" doesn't make sense, or at least it isn't a 
useful concept as far as ECMAScript is concerned – as it doesn't make sense to 
consider arraylikes of fractional length, or of length equal to the string 
`"LOL"`.

If the informal signature of `Array.prototype.copyWithin` is misleading, it 
could be rewritten as: 

    Array.prototype.copyWithin (target, start, end = length of this)

where "length of `obj`" is to be interpreted as `ToLength(obj.length)` – at 
least, it is what the algorithm uses in each and every step where the "length" 
is expected (the `len` variable in steps 8, 11, 12, 14 and 15).

—Claude

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to