archives

« Bugzilla Issues Index

#2908 — 22.2.3.2, 22.2.3.3, 22.2.3.17: Incorrect neutered buffer checks


22.2.3.2 get %TypedArray%.prototype.byteLength
22.2.3.3 get %TypedArray%.prototype.byteOffset
22.2.3.17 get %TypedArray%.prototype.length

All three accessors should throw a TypeError if [[ViewedArrayBuffer]] is `undefined`. Only if [[ViewedArrayBuffer]]'s [[ArrayBufferData]] internal slot is `null`, the default value for neutered buffers should be returned.


fixed in rev26 editor's draft


fixed in rev26