diff --git a/index.bs b/index.bs index 87a3f3a9..fa06f9de 100644 --- a/index.bs +++ b/index.bs @@ -13352,7 +13352,8 @@ fragment:
[ Exposed=(Window,Worker), - Constructor(optional DOMString message = "", optional DOMString name = "Error") + Constructor(optional DOMString message = "", optional DOMString name = "Error"), + Serializable ] interface DOMException { // but see below note about ECMAScript binding readonly attribute DOMString name; @@ -13409,6 +13410,26 @@ Thecode
attribute's getter legacy code indicated in the [=error names table=] for this {{DOMException}} object's [=DOMException/name=], or 0 if no such entry exists in the table. +{{DOMException}} objects are [=serializable objects=]. + +Their [=serialization steps=], given value and serialized, are: + ++
+ +Their [=deserialization steps=], given value and serialized, are: + +- Set serialized.\[[Name]] to value's [=DOMException/name=].
+- Set serialized.\[[Message]] to value's [=DOMException/message=].
+- User agents should attach a serialized representation of any interesting accompanying data + which are not yet specified, notably the
+stack
property, to + serialized.+
- +
value's [=DOMException/name=] to serialized.\[[Name]]. - +
value's [=DOMException/message=] to serialized.\[[Message]]. - If any other data is attached to serialized, then deserialize and attach it to + value.
+DOMTimeStamp