OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://w3c.github.io/browser-payment-api/#paymentcurrencyamount | 5 // https://w3c.github.io/browser-payment-api/#paymentcurrencyamount |
6 | 6 |
7 [ | 7 [ |
8 RuntimeEnabled=PaymentRequest | 8 RuntimeEnabled=PaymentRequest |
9 ] dictionary PaymentCurrencyAmount { | 9 ] dictionary PaymentCurrencyAmount { |
10 required DOMString currency; | 10 [TreatNullAs=NullString] required DOMString currency; |
please use gerrit instead
2016/08/25 16:47:38
Let's not allow nulls. At least an empty string sh
haraken
2016/08/26 01:20:05
Right, [TreatNullAs] must be accompanied with Empt
pals
2016/08/26 07:20:26
['Null currency code should throw', null, function
please use gerrit instead
2016/08/26 17:01:37
OK
| |
11 required DOMString value; | 11 required DOMString value; |
12 }; | 12 }; |
OLD | NEW |