Skip to content

Commit 0bc0baa

Browse files
Do .data IDL conversion in constructor (#829)
* Do .data IDL conversion in PR constructor * json parse, then convert
1 parent 2348752 commit 0bc0baa

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,32 @@

663663
<var>paymentMethodvar>.<a data-lt="PaymentMethodData.data">dataa>
664664
into a string. Rethrow any exceptions.
665665
li>
666+
<li>If <var>serializedDatavar> is not null, and if required
667+
by the specification that defines the
668+
<var>paymentMethodvar>.<a>supportedMethodsa>:
669+
<ol>
670+
<li>Let <var>objectvar> be the result of
671+
<a data-cite="ECMASCRIPT#sec-json.parse">JSON-parsinga>
672+
<var>serializedDatavar>.
673+
li>
674+
<li>
675+
<p>
676+
<a data-lt="converting">Converta> <var>objectvar>
677+
to an IDL value of the type specified by the
678+
specification that defines the
679+
<var>paymentMethodvar>.<a>supportedMethodsa>
680+
(e.g., a <a data-cite=
681+
"payment-method-basic-card#dom-basiccardrequest">BasicCardRequesta>
682+
in the case of [[?payment-method-basic-card]]).
683+
Rethrow any exceptions.
684+
p>
685+
<p class="note">
686+
This step assures that any IDL type conversion errors
687+
are caught as early as possible.
688+
p>
689+
li>
690+
ol>
691+
li>
666692
<li>Add the tuple (<var>paymentMethodvar>.<a data-lt=
667693
"PaymentMethodData.supportedMethods">supportedMethodsa>,
668694
<var>serializedDatavar>) to

0 commit comments

Comments
 (0)