mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
"15Z" will throw RangeError because Z match UTCDesignator => TimeZoneUTCOffset => TimeZoneUTCOffset TimeZoneBracketedAnnotationopt => TimeZoneopt and "15" match 1 DecimalDigit => Hour => TimeHour => TimeSpec so "15Z" match TimeSpec TimeZoneopt => TimeSpecWithOptionalTimeZoneNotAmbiguous => TimeSpecWithOptionalTimeZoneNotAmbiguous Calendaropt => CalendarTime => TemporalTimeString Therefore 13.37 ParseTemporalTimeString ( isoString ) https://tc39.es/proposal-temporal/#sec-temporal-parsetemporaltimestring will succeess in 2. If parseResult is a List of errors, throw a RangeError exception. but the in step 3 3. If parseResult contains a UTCDesignator Parse Node, throw a RangeError exception. the "Z" is UTCDesignator so it will throw RangeError.