W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

[IndexedDB] Exception inconsistency

From: Kyle Huey <me@kylehuey.com>
Date: Wed, 13 Jun 2012 10:50:40 -0700
Message-ID: <CAP045Ar49mTSJ4988krA2T07ROsq9dVrfo9_nN=jpADZwcvvSQ@mail.gmail.com>
To: Web Applications Working Group WG <public-webapps@w3.org>
If a keypath passed to createObjectStore fails certain constraints (not
passing arrays or empty strings to autoIncrement) the spec says to throw an
InvalidAccessError.

If a keypath passed to createIndex fails constraints (an array keypath
passed to a multientry index) the spec says to throw a NotSupportedError.

Why are these not consistent?

- Kyle
Received on Wednesday, 13 June 2012 17:51:14 GMT

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