mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Fix comptued eraYear check bug
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
f541c5c63f
commit
82924e7db5
2 changed files with 1 additions and 29 deletions
|
|
@ -3229,11 +3229,7 @@ std::pair<UCalendar*, Optional<ISO8601::PlainDate>> Temporal::calendarResolveFie
|
|||
setICUMonthDay(state, calendar, fields, icuCalendar, mode == CalendarDateFromFieldsMode::Date ? overflow : TemporalOverflowOption::Reject);
|
||||
|
||||
if (fields.year) {
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
auto epochTime = ucal_getMillis(icuCalendar, &status);
|
||||
DateObject::DateTimeInfo timeInfo;
|
||||
DateObject::computeTimeInfoFromEpoch(epochTime, timeInfo);
|
||||
if (timeInfo.year != fields.year.value()) {
|
||||
if (calendar.year(state, icuCalendar) != fields.year.value()) {
|
||||
ErrorObject::throwBuiltinError(state, ErrorCode::RangeError, "'year' and computed 'year' calendar fields are inconsistent");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -447,14 +447,6 @@
|
|||
<test id="intl402/Temporal/PlainDate/prototype/until/wrapping-at-end-of-month-islamic-tbla"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/until/wrapping-at-end-of-month-islamic-umalqura"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/until/wrapping-at-end-of-month-persian"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/basic-buddhist"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/basic-coptic"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/basic-ethioaa"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/basic-hebrew"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/basic-indian"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/basic-islamic-civil"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/basic-islamic-tbla"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/basic-islamic-umalqura"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/chinese-calendar-leap-dates"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/constrain-day-hebrew"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDate/prototype/with/dangi-calendar-leap-dates"><reason>TODO</reason></test>
|
||||
|
|
@ -508,14 +500,6 @@
|
|||
<test id="intl402/Temporal/PlainDateTime/prototype/until/wrapping-at-end-of-month-islamic-tbla"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/until/wrapping-at-end-of-month-islamic-umalqura"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/until/wrapping-at-end-of-month-persian"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/basic-buddhist"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/basic-coptic"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/basic-ethioaa"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/basic-hebrew"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/basic-indian"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/basic-islamic-civil"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/basic-islamic-tbla"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/basic-islamic-umalqura"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/chinese-calendar-leap-dates"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/constrain-day-hebrew"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/PlainDateTime/prototype/with/dangi-calendar-leap-dates"><reason>TODO</reason></test>
|
||||
|
|
@ -599,14 +583,6 @@
|
|||
<test id="intl402/Temporal/ZonedDateTime/prototype/until/wrapping-at-end-of-month-islamic-tbla"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/until/wrapping-at-end-of-month-islamic-umalqura"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/until/wrapping-at-end-of-month-persian"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/basic-buddhist"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/basic-coptic"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/basic-ethioaa"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/basic-hebrew"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/basic-indian"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/basic-islamic-civil"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/basic-islamic-tbla"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/basic-islamic-umalqura"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/chinese-calendar-leap-dates"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/constrain-day-hebrew"><reason>TODO</reason></test>
|
||||
<test id="intl402/Temporal/ZonedDateTime/prototype/with/dangi-calendar-leap-dates"><reason>TODO</reason></test>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue