[Public WebGL] issue in OES_vertex_array_object conformance test

Kenneth Russell [email protected]
Thu Jun 27 08:35:50 PDT 2013


Yes, it is definitely legal for the browser to throw an exception, and
strictly speaking, throwing an exception seems to be required by the
Web IDL spec:

  http://dev.w3.org/2006/webapi/WebIDL/#es-operations
  http://dev.w3.org/2006/webapi/WebIDL/#dfn-effective-overload-set
  http://dev.w3.org/2006/webapi/WebIDL/#dfn-overload-resolution-algorithm

As far as I can tell, step 4 in the overload resolution algorithm applies here.

Safari and Chrome don't seem to throw exceptions for wrong numbers of
arguments passed to DOM method calls, instead passing undefined for
those arguments. I'm sure that changing that behavior would have a
huge compatibility impact, which is why the WebGL WG decided some time
ago not to test calls with wrong numbers of arguments, or corner cases
in method overloading, in the conformance suite.

-Ken



On Thu, Jun 27, 2013 at 5:16 PM, Benoit Jacob <[email protected]> wrote:
>
> Thanks Ken. In Firefox's case, this resulted in an exception being
> thrown. I believe that it is legal for the browser to throw an exception
> in this case, no? So _if_ one wanted to test that, one would have to
> enclose this in a try {...} catch.
>
> Benoit
>
> On 13-06-27 11:02 AM, Kenneth Russell wrote:
>> Thanks for pointing this out. You're right; since this line tests
>> corner cases in Web IDL handling, the WebGL WG agreed a long time ago
>> not to include such tests in the conformance suite. Removed in
>> https://github.com/KhronosGroup/WebGL/pull/306 .
>>
>> -Ken
>>
>>
>>
>> On Wed, Jun 26, 2013 at 8:40 PM, Guillaume Abadie
>> <[email protected]> wrote:
>>> Hi
>>>
>>> This test https://www.khronos.org/registry/webgl/sdk/tests/conformance/extensions/oes-vertex-array-object.html , at line 191, does:
>>> shouldBeFalse("ext.isVertexArrayOES()");
>>>
>>> But the extension specifications http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ doesn't allow calling isVertexArrayOES without arguments. The arrayObject argument is nullable but not optional.
>>>
>>> Thanks !
>>>
>>> Guillaume.
>>> -----------------------------------------------------------
>>> 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
>>> -----------------------------------------------------------
>>>
>> -----------------------------------------------------------
>> 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
>> -----------------------------------------------------------
>>
>
>
> -----------------------------------------------------------
> 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
> -----------------------------------------------------------
>

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