We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://tc39.es/proposal-temporal/#sec-temporal-unbalancedurationrelative
Return ! CreateDateDurationRecord(years, months, weeks, days).
This step is fallible.
Test case:
var duration = Temporal.Duration.from({ years: 1, months: 0, weeks: 1, }); var cal = new class extends Temporal.Calendar { dateUntil(one, two, options) { var result = super.dateUntil(one, two, options); return result.negated(); } }("iso8601"); var relativeTo = new Temporal.PlainDateTime(1970, 1, 1, 0, 0, 0, 0, 0, 0, cal); assertEq(relativeTo.calendar, cal); assertThrowsInstanceOf(() => { duration.round({ smallestUnit: "days", largestUnit: "month", relativeTo, }); }, RangeError);
The text was updated successfully, but these errors were encountered:
Editorial: Mark CreateDateDurationRecord in RoundDuration as fallible
b0e77c8
Fixes tc39#2235
5411f62
Fixes #2235
85c76cb
Successfully merging a pull request may close this issue.
https://tc39.es/proposal-temporal/#sec-temporal-unbalancedurationrelative
This step is fallible.
Test case:
The text was updated successfully, but these errors were encountered: