Permalink
Browse files

Support annotated types in IDBFactory and IDBObjectStore (fixes #216)

Per recent updates to Web IDL, [EnforceRange] applies directly to the type, not the argument.
  • Loading branch information...
Lisa S authored and inexorabletash committed Sep 25, 2017
1 parent 98a43eb commit 7f31b0d26fa17475732a2b53471cf365b81b9844
Showing with 15 additions and 15 deletions.
  1. +5 −5 index.bs
  2. +10 −10 index.html
View
@@ -2177,7 +2177,7 @@ of indexed databases.
[Exposed=(Window,Worker)]
interface IDBFactory {
[NewObject] IDBOpenDBRequest open(DOMString name,
[EnforceRange] optional unsigned long long version);
optional [EnforceRange] unsigned long long version);
[NewObject] IDBOpenDBRequest deleteDatabase(DOMString name);
short cmp(any first, any second);
@@ -2732,9 +2732,9 @@ interface IDBObjectStore {
[NewObject] IDBRequest get(any query);
[NewObject] IDBRequest getKey(any query);
[NewObject] IDBRequest getAll(optional any query,
[EnforceRange] optional unsigned long count);
optional [EnforceRange] unsigned long count);
[NewObject] IDBRequest getAllKeys(optional any query,
[EnforceRange] optional unsigned long count);
optional [EnforceRange] unsigned long count);
[NewObject] IDBRequest count(optional any query);
[NewObject] IDBRequest openCursor(optional any query,
@@ -3830,9 +3830,9 @@ interface IDBIndex {
[NewObject] IDBRequest get(any query);
[NewObject] IDBRequest getKey(any query);
[NewObject] IDBRequest getAll(optional any query,
[EnforceRange] optional unsigned long count);
optional [EnforceRange] unsigned long count);
[NewObject] IDBRequest getAllKeys(optional any query,
[EnforceRange] optional unsigned long count);
optional [EnforceRange] unsigned long count);
[NewObject] IDBRequest count(optional any query);
[NewObject] IDBRequest openCursor(optional any query,
Oops, something went wrong.

0 comments on commit 7f31b0d

Please sign in to comment.