[Temporal] Fix bug in ScanCalendarDateTimeTimeRequired

Split from cl/3822342
Should advance the length of the TimeZone

Spec Text:
https://tc39.es/proposal-temporal/#prod-CalendarDateTimeTimeRequired

Bug: v8:11544
Change-Id: Ic16a16ac41c29cb04136030b2f2c8b78022f8241
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3824879
Commit-Queue: Frank Tang <ftang@chromium.org>
Reviewed-by: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82367}
This commit is contained in:
Frank Tang 2022-08-10 16:03:44 -07:00 committed by V8 LUCI CQ
parent 2e87bf5ac8
commit 267889f6c2

View File

@ -1233,7 +1233,7 @@ int32_t ScanCalendarDateTimeTimeRequired(base::Vector<Char> str, int32_t s,
if (len == 0) return 0;
cur += len;
// [TimeZone]
cur + ScanTimeZone(str, cur, r);
cur += ScanTimeZone(str, cur, r);
// [Calendar]
cur += ScanCalendar(str, cur, r);
return cur - s;