From 541c9767768c616774f631958ce670bc76f39b55 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Fri, 23 Aug 2019 17:18:58 +0900 Subject: [PATCH 1/2] Add dictionary default value --- index.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 55eb646..5b43f46 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; @@ -2455,7 +2455,7 @@ interface IDBDatabase : EventTarget { void close(); [NewObject] IDBObjectStore createObjectStore(DOMString name, - optional IDBObjectStoreParameters options); + optional IDBObjectStoreParameters options = {}); void deleteObjectStore(DOMString name); // Event handlers: @@ -2771,7 +2771,7 @@ interface IDBObjectStore { [NewObject] IDBIndex createIndex(DOMString name, (DOMString or sequence<DOMString>) keyPath, - optional IDBIndexParameters options); + optional IDBIndexParameters options = {}); void deleteIndex(DOMString name); }; From 1e6ce7613389b57f0bbd01afc3a020757e4031f2 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight <saschanaz@outlook.com> Date: Tue, 27 Aug 2019 11:47:38 +0900 Subject: [PATCH 2/2] reindent --- index.bs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 5b43f46..31e905d 100644 --- a/index.bs +++ b/index.bs @@ -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: