archives

« Bugzilla Issues Index

#4051 — 22.2.3.23 %TypedArray%.prototype.slice: Various issues


22.2.3.23 %TypedArray%.prototype.slice ( start, end )

Steps 17-18 should read:
> Let srcName be the string value of O’s [[TypedArrayName]] internal slot.
> Let srcType be the string value of the Element Type value in Table 49 for srcName.
> Let targetName be the string value of A’s [[TypedArrayName]] internal slot.
> Let targetType be the string value of the Element Type value in Table 49 for targetName.


Step 19 should be removed.


Step 21 should be changed to:
> Else if count > 0, then

To ensure same behaviour for detached buffers.


Step 21.f should be:
> Let srcByteOffset be the value of O’s [[ByteOffset]] internal slot.
> Let srcByteIndex be k × elementSize + srcByteOffset.


Step 21.g should be:
> Let targetByteIndex be 0.


Also, in 21.h, change /ElementSize/ to /elementSize/


fixed in rev35 editor's draft


fixed in rev35