[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Do Typed Array need an isArray method?




On 6/29/12 2:54 PM, Kenneth Russell wrote:
One note: you can do a test like "myArray instanceof Float32Array" to
determine whether a variable is definitely an instance of a particular
type.

As long as multiple windows don't get involved.

It would be convenient if that worked for all typed arrays via
"myArray instanceof ArrayBufferView", but the abstract superinterface
ArrayBufferView isn't exposed at the JavaScript level, at least not in
either the top of tree Chrome or Firefox builds.

This seems like an obvious bug, given the IDL in http://www.khronos.org/registry/typedarray/specs/latest/ and the requirements in WebIDL. Are there bugs filed on this?


-Boris

-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------