Re: IndexedDB: Extra properties in optionalParameters objects

Joshua Bell:
> By my reading of the IDB and WebIDL specs, the optionalParameters
> parameter is a WebIDL dictionary
> (http://www.w3.org/TR/IndexedDB/#options-object-concept). The ECMAScript
> binding algorithm for WebIDL dictionaries
> (http://www.w3.org/TR/WebIDL/#es-dictionary) is such that the members
> expected in the IDL dictionary are read out of the ECMAScript object,
> but the properties of the ECMAScript object itself are never enumerated
> and therefore "extra" properties should be ignored. Therefore, the
> "parameter" property in the test code would be ignored, and this would
> be treated the same as db.createObjectStore(name, {}) which should not
> produce an error.

That's right.

Received on Tuesday, 24 January 2012 22:47:18 UTC