On Wed, Oct 10, 2012 at 6:12 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote: > On 10/10/12 6:51 PM, Jonas Sicking wrote: >> >> FWIW, ES6 is going to treat the undefined value as "not passing a >> parameter" when it comes to functions that have default values. > > > When there are default values, yes. But what about cases when there are no > default values? I agree that it's not explicitly the same thing as what we have here. But I think the general idea is "for optional arguments, treat 'undefined' as if a value wasn't passed at all". > Note that openCursor, which I think is where this thread started, does NOT > define default values for its arguments. Should it? Probably yes. I think explicitly making 'null' the default value would clear things up. > (As a side note, the IDL for openCursor is not valid WebIDL, because "any?" > is not a valid WebIDL type.) That sounds like a WebIDL bug. >> In anticipation of ES6 formally defining this, WebIDL has already >> switched to this > > It certainly hasn't so far, though I agree it may be a good idea to do this. Yeah. It seems like I'm misremembering. We need to get WebIDL updated here. / JonasReceived on Thursday, 11 October 2012 05:44:22 UTC
This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:07 UTC