[w3c/payment-request] Unknown currencySystem should throw (#686)

We have a few instances of things relying on:

> If amount.currencySystem is not "urn:iso:std:iso:4217", terminate this algorithm.

via "check and canonicalize amount" and "check and canonicalize total". However, the places that rely on the two aforementioned algorithms are expecting them to throw. 

Thus, we should change the spec text to:

> If amount.currencySystem is not "urn:iso:std:iso:4217", throw a `TypeError`. 

I'm aware that we are planning on probably ejecting `currencySystem` from the spec, but this would allow us to test support for it properly... so this change would be for completeness.  

-- 
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/payment-request/issues/686

Received on Tuesday, 20 February 2018 21:40:58 UTC