Can't use Object.defineProperty() to add an item to a DOMStringMap or Storage
[WebKit-https.git] / Source / WebCore / storage / Storage.idl
index f4ada08..8bbc03a 100644 (file)
  */
 
 [
-    NamedGetter,
-    JSGenerateIsReachable=ImplFrame,
-    CustomDeleteProperty,
     CustomEnumerateProperty,
-    CustomNamedSetter,
-    SkipVTableValidation
+    GenerateIsReachable=ImplFrame,
+    SkipVTableValidation,
 ] interface Storage {
-    [NotEnumerable] readonly attribute unsigned long length getter raises(DOMException);
-    [NotEnumerable, TreatReturnedNullStringAs=Null] DOMString key(in unsigned long index)
-        raises(DOMException);
-    [NotEnumerable, TreatReturnedNullStringAs=Null] DOMString getItem(in DOMString key)
-        raises(DOMException);
-    [NotEnumerable] void setItem(in DOMString key, in DOMString data) 
-        raises(DOMException);
-    [NotEnumerable] void removeItem(in DOMString key)
-        raises(DOMException);
-    [NotEnumerable] void clear()
-        raises(DOMException);
+    [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();
 };