archives

« Bugzilla Issues Index

#1882 — 15.4.3.10: Missing count = max(count, 0) step


15.4.3.10 Array.prototype.slice (start, end), step 13.

Change to:
Let count = max(final - k, 0)

This covers the case when `final - k` is a negative value, like in `[1,2,3].slice(1,0)`.


fixed in rev19 editor's draft

also in %typedArray% slice


fixed in rev19