Skip to content

Commit 10245d9

Browse files
authored
Require JSON serialization checks coming in (#179)
1 parent cd2c274 commit 10245d9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ <h3>
594594
<pre class="idl">
595595
[Exposed=Window, SecureContext]
596596
interface DigitalCredential : Credential {
597+
[Default] object toJSON();
597598
readonly attribute DOMString protocol;
598599
[SameObject] readonly attribute object data;
599600
static boolean userAgentAllowsProtocol(DOMString protocol);
@@ -689,6 +690,14 @@ <h3>
689690
</li>
690691
<li>If |requests| is empty, [=exception/throw=] a {{TypeError}}.
691692
</li>
693+
<li>[=List/For each=] |request| of |requests|:
694+
<ol>
695+
<li>[=serialize a JavaScript value to a JSON string|Serialize=]
696+
|request| to a JSON string. [=exception/throw|Re-throw=] any
697+
[=exception=].
698+
</li>
699+
</ol>
700+
</li>
692701
<li>
693702
<aside class="issue">
694703
Details of how to actually get the [=digital credential=] are
@@ -738,6 +747,14 @@ <h3>
738747
</li>
739748
<li>If |requests| is empty, [=exception/throw=] a {{TypeError}}.
740749
</li>
750+
<li>[=List/For each=] |request| of |requests|:
751+
<ol>
752+
<li>[=serialize a JavaScript value to a JSON string|Serialize=]
753+
|request| to a JSON string. [=exception/throw|Re-throw=] any
754+
[=exception=].
755+
</li>
756+
</ol>
757+
</li>
741758
<li>
742759
<aside class="issue">
743760
Details of how to actually issue the [=digital credential=] are

0 commit comments

Comments
 (0)