Open
Description
In https://tc39.es/ecma402/#sec-setnfdigitoptions 23.a.iii the sequence to set mnfd
is ambiguous when mxfd
is undefined
.
3. Let mxfd be ? Get(options, "maximumFractionDigits").
...
ii. Set mxfd to ? DefaultNumberOption(mxfd, 0, 100, undefined).
iii. If mnfd is undefined, set mnfd to min(mnfdDefault, mxfd).
At this point, mxfd
can be undefined
which makes the operation min(mnfdDefault, mxfd)
ambiguous. How should I handle this case?
Metadata
Assignees
Labels
No labels