Skip to content

Commit

Permalink
Support annotated types in IDBFactory and IDBObjectStore (fixes #216)
Browse files Browse the repository at this point in the history
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 7f31b0d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions index.bs
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7f31b0d

Please sign in to comment.