Skip to content

Commit a7a50ea

Browse files
Aditi-140012wrigja
authored andcommitted
Z designator should be rejected in PlainTime
UPSTREAM_COMMIT=2e3929829083fed37ddf4fb79f650cb1a3285fb1
1 parent 3572a5b commit a7a50ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ecmascript.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ export function ParseTemporalTimeString(isoString: string) {
461461
microsecond = ToInteger(fraction.slice(3, 6));
462462
nanosecond = ToInteger(fraction.slice(6, 9));
463463
calendar = match[15];
464+
if (match[8]) throw new RangeError('Z designator not supported for PlainTime');
464465
} else {
465466
let z, hasTime;
466467
({ hasTime, hour, minute, second, millisecond, microsecond, nanosecond, calendar, z } =

0 commit comments

Comments
 (0)