You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Editorial: Refactor ISODateSurpasses parallel to NonISODateSurpasses
See tc39/proposal-intl-era-monthcode#101. This
changes the general outline of ISODateSurpasses so that it parallels
the outline of NonISODateSurpasses in the Intl Era Monthcode proposal as
proposed in the PR.
Also refactors the polyfill code, but keeps the optimizations we already
had regarding not passing weeks and days to ISODateSurpasses and not
(yet) adapting the polyfill code to use this algorithm in non-ISO8601
calculations.
The return value indicates whether the calendar date formed by _year_, _monthOrCode_, and _day_, which need not exist, surpasses _target_ in the direction denoted by _sign_.
<p>This operation intentionally uses overflow ~constrain~ when regulating the year-month. As a result, adding the duration returned by `.since` or `.until` to _baseDate_ may cause a *RangeError* exception when _overflow_ is ~reject~.</p>
0 commit comments