Can't use Object.defineProperty() to add an item to a DOMStringMap or Storage
[WebKit-https.git] / Source / WebCore / storage / Storage.idl
index 5514b91..8bbc03a 100644 (file)
  */
 
 [
-    GenerateIsReachable=ImplFrame,
-    CustomDeleteProperty,
     CustomEnumerateProperty,
-    CustomNamedSetter,
+    GenerateIsReachable=ImplFrame,
     SkipVTableValidation,
 ] interface Storage {
-    [NotEnumerable, GetterRaisesException] readonly attribute unsigned long length;
-    [NotEnumerable, TreatReturnedNullStringAs=Null, RaisesException] DOMString key(unsigned long index);
-    [NotEnumerable, TreatReturnedNullStringAs=Null, RaisesException] getter DOMString getItem(DOMString key);
-    [NotEnumerable, RaisesException] void setItem(DOMString key, DOMString data);
-    [NotEnumerable, RaisesException] void removeItem(DOMString key);
-    [NotEnumerable, RaisesException] void clear();
+    [GetterMayThrowException] readonly attribute unsigned long length;
+    [MayThrowException] DOMString? key(unsigned long index);
+    [MayThrowException] getter DOMString? getItem(DOMString key);
+    [MayThrowException] setter void setItem(DOMString key, DOMString data);
+    [MayThrowException] deleter void removeItem(DOMString key);
+    [MayThrowException] void clear();
 };