W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: [IndexedDB] Null argument for optionalParameters?

From: Ms2ger <ms2ger@gmail.com>
Date: Tue, 26 Jun 2012 19:21:08 +0200
Message-ID: <4FE9EF84.8080703@gmail.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: public-webapps@w3.org, Joshua Bell <jsbell@google.com>
On 06/26/2012 07:15 PM, Boris Zbarsky wrote:
> On 6/26/12 12:59 PM, Joshua Bell wrote:
>> All that said, this seems like a common pattern. Is there something in
>> WebIDL I'm not seeing that implies this behavior for dictionaries
>> already?
>
> No, but there have definitely been proposals (from me and Jonas at
> least) that WebIDL treat null, undefined, not passed, and {} as exactly
> identical for optional dictionary arguments...

This was fixed yesterday over in bug 16725; [1] see the spec. [2]

HTH
Ms2ger

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=16725
[2] http://dev.w3.org/2006/webapi/WebIDL/#es-dictionary
Received on Tuesday, 26 June 2012 17:21:41 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:52 GMT