[Public WebGL] Can getSupportedExtensions return null?

Kenneth Russell [email protected]
Thu Apr 26 16:27:16 PDT 2012


On Sun, Apr 22, 2012 at 4:43 AM, Cedric Vivier <[email protected]> wrote:
>
> On Sun, Apr 22, 2012 at 01:51, Boris Zbarsky <[email protected]> wrote:
>> The IDL block for getSupportedExtensions says it returns
>> "sequence<DOMString>?" but the actual prose says it returns
>> "sequence<DOMString>" (note missing '?').  Which one is correct?  I'm
>> assuming it's the former, and the only time null can be returned is if
>> context is lost?
>
> I'm not sure to remember what was the intent here, but I think adding
> "Returns a zero-length sequence if the context's webgl context lost
> flag is set." would be a good idea.
> It would avoid for some apps to throw at context loss because of this
> call where they are (logically) expecting an array.

The intent here was what the IDL specified. The spec has been updated
to add the "?" in section 5.14.14 "Detecting and enabling extensions".

Thanks for pointing out the oversight.

-Ken

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