Re: Feature-detectable API extensions?

On 8/27/13 6:03 PM, Allen Wirfs-Brock wrote:
> Based upon the above signature, IDBCursor.prototype.continue.length
> should be 0.  I verified this on FF.

0 is what's specced in WebIDL right now for this situation...

> void continue(any key, optional dictionary opts {string primaryKey);
>
> according to the ES6 rules (assuming that the second argument is defined
> as a ES6 default value parameter)

It's an odd case.  Dictionaries _are_ in fact something that always has 
a default value, but they're a somewhat special case that way; most 
things only have a default value when explicitly given one.

But further, WebIDL .length doesn't care about default values at all: 
it's based purely on whether arguments are optional or not.

-Boris

Received on Wednesday, 28 August 2013 01:51:22 UTC