[Public WebGL] ArrayBufferView -> ArrayBuffer.isView

Kenneth Russell [email protected]
Thu Jun 6 18:33:18 PDT 2013

A couple of months ago Mozilla and the ECMAScript committee expressed
concern with the typed array tests in the WebGL 1.0.2 conformance
suite. The specific concern was the exposure of the ArrayBufferView
interface in the IDL. The intent was to use this for type testing
(e.g., "val instanceof ArrayBufferView"), but it seems that the
preferred style in ECMAScript is to provide methods for these type
tests; for example, Array.isArray.

There was agreement to expose a static method ArrayBuffer.isView for
these type tests instead, and add the NoInterfaceObject extended
attribute to ArrayBufferView again. The current ECMAScript 6 draft,
which incorporates typed arrays into the language, contains this

Note that while Safari and Chrome have exposed ArrayBufferView for a
while, Firefox never did, so we don't believe any apps will break with
this change since it has never been possible to assume the presence of

The typed array editor's draft spec at
https://www.khronos.org/registry/typedarray/specs/latest/ has been
updated with these changes, and the 1.0.2 and top of tree WebGL
conformance tests have been updated as well to test

Please send any comments on this change to the list.



You are currently subscribed to [email protected]
To unsubscribe, send an email to [email protected] with
the following command in the body of your email:
unsubscribe public_webgl

More information about the public_webgl mailing list