archives

« Bugzilla Issues Index

#1165 — Introduce ArrayBufferView constructor function


Based on community feedback, the editors' draft of the typed array spec at https://www.khronos.org/registry/typedarray/specs/latest/ was recently updated to expose the ArrayBufferView constructor function, principally so that it can be used in instanceof checks with typed array instances. The typed array conformance tests at https://www.khronos.org/registry/webgl/sdk/tests/conformance/typedarrays/array-unit-tests.html were modified, and bugs filed against multiple browsers to expose it:

http://crbug.com/60449
https://bugzilla.mozilla.org/show_bug.cgi?id=796327
https://bugs.webkit.org/show_bug.cgi?id=105605

Please update the typed array section in the ES 6 draft specification to reflect this change, so that code written against the current typed array draft will work when these types are incorporated into ES 6.


After additional discussion, it was decided not to pursue this direction. Instead, a new static function ArrayBuffer.isView(value) was added. The [NoInterfaceObject] extended attribute was once again added to the ArrayBufferView interface in the typed array spec, and the typed array conformance tests (part of the WebGL conformance suite) have been updated to test ArrayBuffer.isView (not yet implemented by any UA).