archives

« Bugzilla Issues Index

#2493 — 22.2.1.4: Remove step 16


Bug 1932 did not remove step 16 (was step 15 in rev18), only added the additional test in step 17c.


+++ This bug was initially created as a clone of Bug #1932 +++

22.2.1.4 %TypedArray% ( buffer, byteOffset=0, length=undefined )

Step 16:
If offset + elementSize ≥ bufferByteLength, then throw a RangeError exception.

This step needs to be removed, otherwise zero length Typed Arrays cannot be created.

test case:
new Int8Array(new ArrayBuffer(0), 0, 0)


fixed in rev23 editor's draft


fixed in rev23 draft