diff --git a/index.bs b/index.bs index 55eb646..31e905d 100644 --- a/index.bs +++ b/index.bs @@ -2099,7 +2099,7 @@ This specification fires events with the following custom interfaces: [Exposed=(Window,Worker), - Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict)] + Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict = {})] interface IDBVersionChangeEvent : Event { readonly attribute unsigned long long oldVersion; readonly attribute unsigned long long? newVersion; @@ -2454,8 +2454,9 @@ interface IDBDatabase : EventTarget { optional IDBTransactionMode mode = "readonly"); void close(); - [NewObject] IDBObjectStore createObjectStore(DOMString name, - optional IDBObjectStoreParameters options); + [NewObject] IDBObjectStore createObjectStore( + DOMString name, + optional IDBObjectStoreParameters options = {}); void deleteObjectStore(DOMString name); // Event handlers: @@ -2771,7 +2772,7 @@ interface IDBObjectStore { [NewObject] IDBIndex createIndex(DOMString name, (DOMString or sequence<DOMString>) keyPath, - optional IDBIndexParameters options); + optional IDBIndexParameters options = {}); void deleteIndex(DOMString name); };