Skip to content

Commit b6b0630

Browse files
Validate .data on construction (#976)
1 parent b1c1411 commit b6b0630

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

index.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -583,15 +583,21 @@ <h2>
583583
</li>
584584
<li>
585585
<p>
586-
[=converted to an IDL value|Convert=] |object| to an
587-
IDL value of the type specified by the specification
588-
that defines the
589-
|paymentMethod|.{{PaymentMethodData/supportedMethods}}
586+
Let |idl| be the result of [=converted to an IDL
587+
value|converting=] |object| to an IDL value of the
588+
type specified by the specification that defines the
589+
|paymentMethod|.{{PaymentMethodData/supportedMethods}}.
590590
Rethrow any exceptions.
591591
</p>
592+
<p>
593+
If required by the specification that defines the
594+
|paymentMethod|.{{PaymentMethodData/supportedMethods}},
595+
validate the members of |idl|. If a member's value is
596+
invalid, throw a {{TypeError}}.
597+
</p>
592598
<p class="note">
593-
This step assures that any IDL type conversion errors
594-
are caught as early as possible.
599+
These step assures that any IDL type conversion and
600+
validation errors are caught as early as possible.
595601
</p>
596602
</li>
597603
</ol>

0 commit comments

Comments
 (0)