W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: IndexedDB: Extra properties in optionalParameters objects

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 25 Jan 2012 09:46:33 +1100
Message-ID: <4F1F34C9.80000@mcc.id.au>
To: Joshua Bell <jsbell@chromium.org>
CC: public-webapps@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT