mirror of https://github.com/tc39/test262.git
Curation: remove v8/test262/local-tests/test/intl402/NumberFormat/default-currency-maximum-fraction-digits.js
A version of the same file, containing the same test with more coverage and a more complete set of meta data exists, dft-currency-mnfd-range-check-mxfd.js
This commit is contained in:
parent
8fc7cdaa05
commit
e557560f71
|
@ -1,17 +0,0 @@
|
||||||
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
esid: ECMA-402 #sec-setnfdigitoptions
|
|
||||||
description: >
|
|
||||||
When a currency is used in Intl.NumberFormat and minimumFractionDigits is
|
|
||||||
not provided, maximumFractionDigits should be range-checked against it.
|
|
||||||
include: [assert.js]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
assert.throws(RangeError,
|
|
||||||
() => new Intl.NumberFormat('en', {
|
|
||||||
style: 'currency',
|
|
||||||
currency: 'USD',
|
|
||||||
maximumFractionDigits: 1
|
|
||||||
}));
|
|
Loading…
Reference in New Issue