- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 27 Aug 2013 21:50:53 -0400
- To: Allen Wirfs-Brock <allen@wirfs-brock.com>
- CC: Joshua Bell <jsbell@google.com>, public-script-coord <public-script-coord@w3.org>
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