Skip to content

Commit 9a8e2e5

Browse files
authored
fixup! fix: improve check data schema algorithm
1 parent 2a3365f commit 9a8e2e5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

index.html

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,17 +1068,7 @@ <h2>The <dfn>InteractionOutput</dfn> interface</h2>
10681068
let |payload| be the value of |schema|.|default|.
10691069
</li>
10701070
<li>
1071-
Let |const| be |schema|.|const|.
1072-
If |const| is not |undefined|,
1073-
<ol>
1074-
<li>
1075-
<!-- TODO: Should we already return here? -->
1076-
If |const| equals |payload|, return |payload|.
1077-
</li>
1078-
<li>
1079-
If |const| does not equal |payload|, throw {{TypeError}} and stop.
1080-
</li>
1081-
</ol>
1071+
If |schema|.|const| is not |undefined| and |schema|.|const| does not equal |payload|, throw {{TypeError}} and stop.
10821072
</li>
10831073
<li>
10841074
If |schema|.|enum| is not |undefined| and none of the elements in

0 commit comments

Comments
 (0)