Re: [indexeddb] Using WebIDL Dictionary in IDBObjectStore.createIndex for optionalParameters

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.

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)?

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Monday, 6 June 2011 21:15:45 UTC