On Mon, Jun 6, 2011 at 2:15 PM, Cameron McCormack <c...@mcc.id.au> wrote:
> Jonas Sicking:
>> The one outstanding issue that I know about is that we want IndexedDB
>> to throw if any unknown parameters are specified. I don't know if
>> WebIDL dictionaries support those yet. Or if it's something that we
>> can specify in prose.
>
> I was waiting to see if anyone else had any views on that in the other
> thread, but I guess they don’t. :-)  I am still not quite comfortable
> with looking at the enumerability of the property to determine whether
> it will be used as a dictionary member value.  It’s not consistent with
> how property descriptors are handled by Object.defineProperty and it
> doesn’t seem like a natural JS usage pattern for objects-as-property-
> bags.

Yeah, I agree that using enumerability is not great.

> Throwing if there are unknown properties is also inconsistent with
> Object.defineProperty.  Do you think this should happen for all users of
> dictionaries (if other specs used them)?

I don't know about other APIs. But it does seem very unfortunate to
simply silently ignore unknown arguments to
IDBDatabase.createObjectStore. Though then again, extra (and thus
unknown) arguments are ignored to all other DOM calls.

/ Jonas

Reply via email to