archives

« Bugzilla Issues Index

#2177 — 24.1.1.3 CloneArrayBuffer: Invalid assertion in step 7


24.1.1.3 CloneArrayBuffer(srcBuffer, srcByteOffset), step 7:

Change assertion from "srcByteOffset < srcLength" to "srcByteOffset <= srcLength" to handle the zero-length ArrayBuffer case.

test case which currently asserts:
---
new Int8Array(new Int8Array(new ArrayBuffer(0)))
---


fixed in rev21 editor's draft


fixed in rev21 draft