Re: [indexeddb] Handing negative parameters for the advance method

2011-08-14 Thread Aryeh Gregor
On Fri, Aug 12, 2011 at 6:16 PM, Jonas Sicking jo...@sicking.cc wrote: Yup. Though I think WebIDL will take care of the handling for when the author specifies a negative value. I.e. WebIDL will specify what exception to throw, so we don't need to. Similar to how WebIDL specifies what exception

[indexeddb] Handing negative parameters for the advance method

2011-08-12 Thread Israel Hilerio
Since advance is intended to always move the cursor forward, it seems we want to only support positive parameter values. Therefore, I would suggest we change its signature to: void advance (in unsigned int count); If a developer specifies a negative number for it, we could throw an

Re: [indexeddb] Handing negative parameters for the advance method

2011-08-12 Thread Jonas Sicking
On Fri, Aug 12, 2011 at 2:34 PM, Israel Hilerio isra...@microsoft.com wrote: Since advance is intended to always move the cursor forward, it seems we want to only support positive parameter values.  Therefore, I would suggest we change its signature to: void advance (in unsigned int count);