test262/test
Yusuke Suzuki a7b9067fe1 Intl.NumberFormat + currency will throw an error if maximumFractionDigits is less than currencyDigits
In 12.1.1 SetNumberFormatDigitOptions step 12.d[1], mnfd (minimum fraction digits) becomes the same to currencyDigits (mxfdDefault in this case).
It is 2 for USD, 4 for CLF. So, if maximumFractionDigits is less than that, we should throw RangeError.

[1]: https://tc39.es/ecma402/#sec-setnfdigitoptions
2020-09-15 10:33:23 -04:00
..
annexB Add tests for cross‑realm and subclass calls of legacy static accessors 2020-09-10 16:07:17 -04:00
built-ins Coverage: Number.prototype.toPrecision throws a RangeError if precision cannot be coerced to a number in range. Fixes gh-2765 2020-09-14 13:36:22 -04:00
harness Gracefully handle nullish arguments in harness/compareArray 2020-08-31 15:17:24 -04:00
intl402 Intl.NumberFormat + currency will throw an error if maximumFractionDigits is less than currencyDigits 2020-09-15 10:33:23 -04:00
language Coverage: check instanceof on instances of built-in subclasses. Fixes gh-659 2020-09-14 13:40:33 -04:00