« Bugzilla Issues Index

#1675 — full ArrayBuffer clone necessary or srcByteOffset needs to be adjusted "%TypedArray%.prototype.set(typedArray, offset = 0)", step 23.

If srcBuffer === targetBuffer, srcBuffer gets cloned through CloneArrayBuffer(), but only for a length of `srcLength`, which does not prevent the loop in step 27 to step on its toes. Either CloneArrayBuffer() needs to be instructed to make a full copy, that means from 0 to srcBuffer's [[ArrayBufferByteLength]], or make partial clone from srcByteOffset to srcLength and then set srcByteOffset to 0.

fixed in rev17 editor's draft

fixed in rev17, August 23, 2013 draft