[w3c/browser-payment-api] PaymentRequest type checks (#306)

The following should be combined:

> If details.total.amount.value is not a valid decimal monetary value, then throw a TypeError.
> If the first character of details.total.amount.value is U+002D HYPHEN-MINUS, then throw a TypeError. total must be a non-negative amount.

We should just define a "valid non-negative currency value" as an algorithm that calls into "valid decimal monetary value". 


-- 
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/issues/306

Received on Monday, 14 November 2016 07:58:18 UTC