Skip to content

Commit

Permalink
Add required IDL for new error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterKale committed Aug 28, 2024
1 parent 09571b2 commit 0887054
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3763,13 +3763,38 @@ please see [[#sctn-create-request-exceptions]] and [[#sctn-get-request-exception
<xmp class="idl">
[Exposed=Window, Serializable]
interface UserCancellationError : DOMException {
constructor(optional DOMString message = "");
};
</xmp>

The <code>new UserCancellationError(|message|)</code> constructor steps are:

1. Set [=this=]'s {{DOMException/name}} to `"UserCancellationError"`.
1. Set [=this=]'s {{DOMException/message}} to `message`.

{{UserCancellationError}} objects are [=serializable objects=].

Their [=serialization steps=], given |value| and |serialized|, are to run the {{DOMException}} [=serialization steps=] given |value| and |serialized|.

Their [=deserialization steps=], given |serialized| and |value|, are to run the {{DOMException}} [=deserialization steps=] given |serialized| and |value|.

<xmp class="idl">
[Exposed=Window, Serializable]
interface UserVerificationError : DOMException {
constructor(optional DOMString message = "");
};
</xmp>

The <code>new UserVerificationError(|message|)</code> constructor steps are:

1. Set [=this=]'s {{DOMException/name}} to `"UserVerificationError"`.
1. Set [=this=]'s {{DOMException/message}} to `message`.

{{UserVerificationError}} objects are [=serializable objects=].

Their [=serialization steps=], given |value| and |serialized|, are to run the {{DOMException}} [=serialization steps=] given |value| and |serialized|.

Their [=deserialization steps=], given |serialized| and |value|, are to run the {{DOMException}} [=deserialization steps=] given |serialized| and |value|.

## WebAuthn Extensions Inputs and Outputs ## {#sctn-extensions-inputs-outputs}

Expand Down

0 comments on commit 0887054

Please sign in to comment.