mirror of https://github.com/tc39/test262.git
change notation to "standard"
I do not believe this setup is correct if we use notation: "compact". in https://tc39.es/proposal-intl-numberformat-v3/out/numberformat/diff.html#sec-setnfdigitoptions notation is "compact" mnsd is undefined mxsd is undefined mnfd is undefined mxfd is undefined hasSd is false hasFd is false needSd is false needFd is false so step 23 else block will be run Set intlObj.[[RoundingType]] to morePrecision. then in step 23 of https://tc39.es/proposal-intl-numberformat-v3/out/numberformat/diff.html#sec-initializenumberformat ``` If roundingIncrement is not 1 and numberFormat.[[RoundingType]] is not fractionDigits, throw a RangeError exception. ```
This commit is contained in:
parent
9bfdf89edc
commit
0fe508c5f0
|
@ -34,7 +34,7 @@ for (const [value, expected] of values) {
|
|||
const nf = new Intl.NumberFormat([], {
|
||||
get notation() {
|
||||
callOrder.push("notation");
|
||||
return "compact";
|
||||
return "standard";
|
||||
},
|
||||
get roundingIncrement() {
|
||||
callOrder.push("roundingIncrement");
|
||||
|
|
Loading…
Reference in New Issue