-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
consensusWe reached a consensus in a discussion meeting, through email or the issue discussionWe reached a consensus in a discussion meeting, through email or the issue discussion
Description
We will integrate Temporal duration related changes in the future, and it will change the current format function's TypeError to RangeError.
So, how about making it RangeError
from the beginning? I think the rationale is that, "Intl.Duration#format can format Duration described as a String in a particular syntax, but in this spec, no syntax is accepted, so it is always throwing a RangeError".
var fmt = new Intl.DurationFormat('en');
fmt.format(""); // TypeError. But if Temporal is integrated, it will become RangeError
ptomato
Metadata
Metadata
Assignees
Labels
consensusWe reached a consensus in a discussion meeting, through email or the issue discussionWe reached a consensus in a discussion meeting, through email or the issue discussion