Skip to content

Commit 24f51a8

Browse files
saschanazinexorabletash
authored andcommitted
Add dictionary default value (#292)
Fixes #285
1 parent 01d7343 commit 24f51a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

index.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ This specification fires events with the following custom interfaces:
20992099

21002100
<xmp class=idl>
21012101
[Exposed=(Window,Worker),
2102-
Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict)]
2102+
Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict = {})]
21032103
interface IDBVersionChangeEvent : Event {
21042104
readonly attribute unsigned long long oldVersion;
21052105
readonly attribute unsigned long long? newVersion;
@@ -2454,8 +2454,9 @@ interface IDBDatabase : EventTarget {
24542454
optional IDBTransactionMode mode = "readonly");
24552455
void close();
24562456

2457-
[NewObject] IDBObjectStore createObjectStore(DOMString name,
2458-
optional IDBObjectStoreParameters options);
2457+
[NewObject] IDBObjectStore createObjectStore(
2458+
DOMString name,
2459+
optional IDBObjectStoreParameters options = {});
24592460
void deleteObjectStore(DOMString name);
24602461

24612462
// Event handlers:
@@ -2771,7 +2772,7 @@ interface IDBObjectStore {
27712772

27722773
[NewObject] IDBIndex createIndex(DOMString name,
27732774
(DOMString or sequence<DOMString>) keyPath,
2774-
optional IDBIndexParameters options);
2775+
optional IDBIndexParameters options = {});
27752776
void deleteIndex(DOMString name);
27762777
};
27772778

0 commit comments

Comments
 (0)