New daysInYear tests use incorrect data for Chinese calendar
CNY is Feb 17, 2026, and Feb 6, 2027, which is 365 - 11 = 354 days, however the test expects 355
https://github.com/tc39/test262/blob/682737d2c12148594392137c38e873e7d891d122/test/intl402/Temporal/PlainDate/prototype/daysInYear/basic-chinese.js#L71
https://www.hko.gov.hk/en/gts/time/calendar/pdf/files/2026e.pdf
https://www.hko.gov.hk/en/gts/time/calendar/pdf/files/2027e.pdf
I would highly recommend not using the reference impl to compose new tests that deal with Chinese and Dangi dates, it has time and time again proven buggy.
(Or, if doing so, test against Boa or V8 first, and note down the discrepancies)
1 条评论