Commit 38e56036 authored by Frank Tang's avatar Frank Tang Committed by V8 LUCI CQ

[Temporal] Add PlainTime.prototype.toZonedDateTime

Spec Text: https://tc39.es/proposal-temporal/#sec-temporal.plaintime.prototype.tozoneddatetime

Bug: v8:11544
Change-Id: I147b1d21b4728520c5667a30548ec77f71d7445a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3554456Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80730}
parent 22a16bda
...@@ -70,8 +70,6 @@ TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeRound) ...@@ -70,8 +70,6 @@ TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeRound)
TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeEquals) TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeEquals)
/* Temporal #sec-temporal.plaintime.prototype.toplaindatetime */ /* Temporal #sec-temporal.plaintime.prototype.toplaindatetime */
TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeToPlainDateTime) TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeToPlainDateTime)
/* Temporal #sec-temporal.plaintime.prototype.tozoneddatetime */
TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeToZonedDateTime)
/* Temporal #sec-temporal.plaintime.prototype.tolocalestring */ /* Temporal #sec-temporal.plaintime.prototype.tolocalestring */
TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeToLocaleString) TO_BE_IMPLEMENTED(TemporalPlainTimePrototypeToLocaleString)
/* Temporal #sec-temporal.plaintime.prototype.tostring */ /* Temporal #sec-temporal.plaintime.prototype.tostring */
...@@ -440,6 +438,7 @@ TEMPORAL_GET_SMI(PlainTime, Millisecond, iso_millisecond) ...@@ -440,6 +438,7 @@ TEMPORAL_GET_SMI(PlainTime, Millisecond, iso_millisecond)
TEMPORAL_GET_SMI(PlainTime, Microsecond, iso_microsecond) TEMPORAL_GET_SMI(PlainTime, Microsecond, iso_microsecond)
TEMPORAL_GET_SMI(PlainTime, Nanosecond, iso_nanosecond) TEMPORAL_GET_SMI(PlainTime, Nanosecond, iso_nanosecond)
TEMPORAL_METHOD2(PlainTime, From) TEMPORAL_METHOD2(PlainTime, From)
TEMPORAL_PROTOTYPE_METHOD1(PlainTime, ToZonedDateTime, toZonedDateTime)
TEMPORAL_PROTOTYPE_METHOD0(PlainTime, GetISOFields, getISOFields) TEMPORAL_PROTOTYPE_METHOD0(PlainTime, GetISOFields, getISOFields)
TEMPORAL_VALUE_OF(PlainTime) TEMPORAL_VALUE_OF(PlainTime)
TEMPORAL_PROTOTYPE_METHOD0(PlainTime, ToJSON, toJSON) TEMPORAL_PROTOTYPE_METHOD0(PlainTime, ToJSON, toJSON)
......
This diff is collapsed.
...@@ -451,6 +451,11 @@ class JSTemporalPlainTime ...@@ -451,6 +451,11 @@ class JSTemporalPlainTime
V8_WARN_UNUSED_RESULT static MaybeHandle<JSTemporalPlainTime> From( V8_WARN_UNUSED_RESULT static MaybeHandle<JSTemporalPlainTime> From(
Isolate* isolate, Handle<Object> item, Handle<Object> options); Isolate* isolate, Handle<Object> item, Handle<Object> options);
// #sec-temporal.plaintime.prototype.tozoneddatetime
V8_WARN_UNUSED_RESULT static MaybeHandle<JSTemporalZonedDateTime>
ToZonedDateTime(Isolate* isolate, Handle<JSTemporalPlainTime> plain_time,
Handle<Object> item);
// #sec-temporal.plaintime.prototype.getisofields // #sec-temporal.plaintime.prototype.getisofields
V8_WARN_UNUSED_RESULT static MaybeHandle<JSReceiver> GetISOFields( V8_WARN_UNUSED_RESULT static MaybeHandle<JSReceiver> GetISOFields(
Isolate* isolate, Handle<JSTemporalPlainTime> plain_time); Isolate* isolate, Handle<JSTemporalPlainTime> plain_time);
......
...@@ -1170,26 +1170,7 @@ ...@@ -1170,26 +1170,7 @@
'built-ins/Temporal/PlainTime/prototype/toString/smallestunit-undefined': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toString/smallestunit-undefined': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toString/smallestunit-valid-units': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toString/smallestunit-valid-units': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toString/smallestunit-wrong-type': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toString/smallestunit-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-plaindatetime': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-primitive': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-string-with-utc-designator': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-zoneddatetime-timezone-getoffsetnanosecondsfor-non-integer': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-zoneddatetime-timezone-getoffsetnanosecondsfor-not-callable': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-zoneddatetime-timezone-getoffsetnanosecondsfor-out-of-range': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-zoneddatetime-timezone-getoffsetnanosecondsfor-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/basic': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/branding': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/calendar-datefromfields-called-with-options-undefined': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/calendar-fields-iterable': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/calendar-temporal-object': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/infinity-throws-rangeerror': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/plaindate-infinity-throws-rangeerror': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-getoffsetnanosecondsfor-non-integer': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-getoffsetnanosecondsfor-not-callable': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-getoffsetnanosecondsfor-out-of-range': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-getoffsetnanosecondsfor-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-getpossibleinstantsfor-iterable': [SKIP], 'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-getpossibleinstantsfor-iterable': [SKIP],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-string-datetime': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-string-multiple-offsets': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-string-multiple-offsets': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/argument-string-with-utc-designator': [FAIL], 'built-ins/Temporal/PlainTime/prototype/until/argument-string-with-utc-designator': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/argument-zoneddatetime-balance-negative-time-units': [FAIL], 'built-ins/Temporal/PlainTime/prototype/until/argument-zoneddatetime-balance-negative-time-units': [FAIL],
...@@ -1714,7 +1695,6 @@ ...@@ -1714,7 +1695,6 @@
'intl402/Temporal/PlainTime/prototype/toLocaleString/resolved-time-zone': [FAIL], 'intl402/Temporal/PlainTime/prototype/toLocaleString/resolved-time-zone': [FAIL],
'intl402/Temporal/PlainTime/prototype/toLocaleString/timezone-getoffsetnanosecondsfor-not-callable': [FAIL], 'intl402/Temporal/PlainTime/prototype/toLocaleString/timezone-getoffsetnanosecondsfor-not-callable': [FAIL],
'intl402/Temporal/PlainTime/prototype/toPlainDateTime/infinity-throws-rangeerror': [FAIL], 'intl402/Temporal/PlainTime/prototype/toPlainDateTime/infinity-throws-rangeerror': [FAIL],
'intl402/Temporal/PlainTime/prototype/toZonedDateTime/plaindate-infinity-throws-rangeerror': [FAIL],
'intl402/Temporal/PlainYearMonth/compare/infinity-throws-rangeerror': [FAIL], 'intl402/Temporal/PlainYearMonth/compare/infinity-throws-rangeerror': [FAIL],
'intl402/Temporal/PlainYearMonth/prototype/equals/infinity-throws-rangeerror': [FAIL], 'intl402/Temporal/PlainYearMonth/prototype/equals/infinity-throws-rangeerror': [FAIL],
'intl402/Temporal/PlainYearMonth/prototype/since/infinity-throws-rangeerror': [FAIL], 'intl402/Temporal/PlainYearMonth/prototype/since/infinity-throws-rangeerror': [FAIL],
...@@ -1903,7 +1883,6 @@ ...@@ -1903,7 +1883,6 @@
'built-ins/Temporal/PlainTime/prototype/toString/roundingmode-halfExpand': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toString/roundingmode-halfExpand': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toString/roundingmode-trunc': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toString/roundingmode-trunc': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toString/smallestunit-fractionalseconddigits': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toString/smallestunit-fractionalseconddigits': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/year-zero': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/argument-cast': [FAIL], 'built-ins/Temporal/PlainTime/prototype/until/argument-cast': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/argument-string-no-implicit-midnight': [FAIL], 'built-ins/Temporal/PlainTime/prototype/until/argument-string-no-implicit-midnight': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/argument-string-time-designator-required-for-disambiguation': [FAIL], 'built-ins/Temporal/PlainTime/prototype/until/argument-string-time-designator-required-for-disambiguation': [FAIL],
...@@ -2068,7 +2047,6 @@ ...@@ -2068,7 +2047,6 @@
'built-ins/Temporal/PlainDateTime/prototype/with/string-throws': [FAIL], 'built-ins/Temporal/PlainDateTime/prototype/with/string-throws': [FAIL],
'built-ins/Temporal/PlainDateTime/prototype/with/timezone-throws': [FAIL], 'built-ins/Temporal/PlainDateTime/prototype/with/timezone-throws': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toPlainDateTime/argument-string-invalid': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toPlainDateTime/argument-string-invalid': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-string-invalid': [FAIL],
'built-ins/Temporal/ZonedDateTime/prototype/withPlainDate/argument-string-invalid': [FAIL], 'built-ins/Temporal/ZonedDateTime/prototype/withPlainDate/argument-string-invalid': [FAIL],
'built-ins/Temporal/Duration/compare/options-wrong-type': [FAIL], 'built-ins/Temporal/Duration/compare/options-wrong-type': [FAIL],
...@@ -2332,11 +2310,7 @@ ...@@ -2332,11 +2310,7 @@
'built-ins/Temporal/PlainTime/prototype/toPlainDateTime/argument-propertybag-calendar-wrong-type': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toPlainDateTime/argument-propertybag-calendar-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toPlainDateTime/argument-wrong-type': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toPlainDateTime/argument-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toPlainDateTime/limits': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toPlainDateTime/limits': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-number': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-propertybag-calendar-number': [FAIL], 'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-propertybag-calendar-number': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-propertybag-calendar-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/argument-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/argument-number': [FAIL], 'built-ins/Temporal/PlainTime/prototype/until/argument-number': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/argument-wrong-type': [FAIL], 'built-ins/Temporal/PlainTime/prototype/until/argument-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/plaintime-propertybag-no-time-units': [FAIL], 'built-ins/Temporal/PlainTime/prototype/until/plaintime-propertybag-no-time-units': [FAIL],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment