Strange limitation in ArrayBufferView constructor [duplicate]
This question already has an answer here: Why is creating a Float32Array with an offset that isn't a multiple of the element size not allowed? 3 answers The TypedArray specification states that an ArrayBufferView may be created this way: TypedArray(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length) However, the second parameter, byteOffset , has a limitation: The given byteOffset must be a multiple of the element size of the specific type, otherwise an exception is raised. This means we cannot work with odd offsets for two-byte views, such as: var view1 = new