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

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



On Fri, Jun 29, 2012 at 12:08 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> 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?

No, I only just realized the problem.

How does this work for DOM nodes?

-Ken

-----------------------------------------------------------
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
-----------------------------------------------------------