Closed FrankYFTang closed 2 years ago
@ajklein (FYI- in case you wonder why some of my v8 implementation does not pass some test262 tests- Sometime the tests are invalid)
This is tracked in https://github.com/tc39/proposal-temporal/issues/2165.
tc39/proposal-temporal#2165 is closed, resolved in such a way that makes these tests valid. I think this can be closed.
The following tests landed by @ptomato are invalid.
All of them have the following pattern as the first several lines for setup the test
and then use arg but 19970327 will be converted to String in step 2 of ToTemporalCalendar https://tc39.es/proposal-temporal/#sec-temporal-totemporalcalendar and become "19970327" then in step3 IsBuiltinCalendar ( "19970327") will return false and step 3a it will call a. Set identifier to ? ParseTemporalCalendarString("19970327")
now inside ParseTemporalCalendarString https://tc39.es/proposal-temporal/#sec-temporal-parsetemporalcalendarstring Step 1 and 2 will be run and there are no Error
and ParseTemporalCalendarString("19970327") will return "19970327" but not "iso8601". and then in step 3b of ToTemporalCalendar it will call IsBuiltinCalendar("19970327" ) again and throw the RangeError b. If IsBuiltinCalendar(identifier) is false, throw a RangeError exception.
And none of the step after that setup will be run.