- From: Zach Koch <notifications@github.com>
- Date: Thu, 29 Jun 2017 07:53:48 -0700
- To: w3c/browser-payment-api <browser-payment-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/browser-payment-api/pull/536/review/47150749@github.com>
zkoch commented on this pull request. > - <a>payment method identifiers</a> given <var>identifiers</var>. - For each resulting payment handler, if payment method specific - capabilities supplied by the payment handler match those provided - by <var>data</var>, the payment handler matches. + <li>Let <var>data</var> be the result of <a data-cite= + "!ECMA-262-2015#sec-json.parse">JSON-parsing</a> the second + element in <var>paymentMethod</var> tuple. + </li> + <li>If required by the specification that defines the + <var>identifer</var>, then <a data-cite= + "!WEBIDL#dfn-convert-ecmascript-to-idl-value">convert</a> + <var>data</var> to an IDL value. Otherwise, <a data-cite= + "!WEBIDL#dfn-convert-ecmascript-to-idl-value">convert</a> to + <a data-cite="!WEBIDL#idl-object">object</a>. + </li> + <li>If conversion results in an error, reject To close the loop on this (apologies for this post merge): We discussed this on yesterday's editor call. While there is certainly merit in ignoring the offending payment method and its related data blob, we've been moving in the direction of explicitly throwing errors for the purpose of developer clarity across this spec. It seems best to follow suit here. We realize there are other options (e.g. console logging a warning), but as this is core to how PR works, an explicit throw was voted as the best option by the editors. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/browser-payment-api/pull/536#discussion_r124823555
Received on Thursday, 29 June 2017 14:54:45 UTC