Re: Clarification on exceptions

Done in http://dev.w3.org/cvsweb/geo/api/spec-source.html.diff?r1=1.92&r2=1.93&f=h

Thanks,
Andrei

On Sat, Feb 12, 2011 at 4:42 AM, Doug Turner <dougt@dougt.org> wrote:
> make sense.
>
> On Fri, Feb 11, 2011 at 6:39 PM, Steve Block <steveblock@google.com> wrote:
>>
>> I think that the spec does implicitly specify a behavior, since Web
>> IDL specifies the conversion between an ECMAScript value and an IDL
>> type.
>>
>> For example, for the PositionCallback argument, Web IDL states that if
>> an argument is passed that does not implement the interface, a
>> TypeError should be thrown -
>> http://dev.w3.org/2006/webapi/WebIDL/#es-interface.
>>
>> A complication is in the handling of a null value for the
>> PositionCallback argument. I think that a null ECMAScript value is
>> successfully converted to an IDL interface of value null -
>> http://dev.w3.org/2006/webapi/WebIDL/#idl-interface. The Geolocation
>> spec states that we should then abort the operation on receipt of a
>> null value.
>>
>> This does not match the behavior of the current implementations, which
>> throw an exception if a null value is passed. We should probably
>> consider updating the spec to reflect this behavior.
>>
>> Steve
>>
>> --
>> Google UK Limited
>> Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
>> 9TQ
>> Registered in England Number: 3977902
>
>

Received on Thursday, 17 February 2011 15:10:18 UTC