Claude Pache (2014-02-14T22:14:04.000Z)
> Le 14 févr. 2014 à 21:46, "C. Scott Ananian" <ecmascript at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140214/5b80320b/attachment.html>
domenic at domenicdenicola.com (2014-02-21T20:24:14.700Z)
> Le 14 févr. 2014 à 21:46, "C. Scott Ananian" <ecmascript at 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).