mirror of https://github.com/tc39/test262.git
Disable grouping for numeric units in Intl.DurationFormat
This commit is contained in:
parent
1128b6fcd2
commit
e7024c1761
|
@ -2673,6 +2673,8 @@ function partitionDurationFormatPattern(durationFormat, duration) {
|
||||||
nfOpts.style = "unit";
|
nfOpts.style = "unit";
|
||||||
nfOpts.unit = numberFormatUnit;
|
nfOpts.unit = numberFormatUnit;
|
||||||
nfOpts.unitDisplay = style;
|
nfOpts.unitDisplay = style;
|
||||||
|
} else {
|
||||||
|
nfOpts.useGrouping = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
let nf = new Intl.NumberFormat(locale, nfOpts);
|
let nf = new Intl.NumberFormat(locale, nfOpts);
|
||||||
|
|
Loading…
Reference in New Issue