Commit 70467d9e authored by Frank Tang's avatar Frank Tang Committed by V8 LUCI CQ

[Temporal] Add Temporal.PlainTime.from

Bug: v8:11544
Change-Id: I134b8c786a8dfaef2f4f2509ec5f6c6a009852f3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3379232Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79523}
parent 313d5fa4
......@@ -66,8 +66,6 @@ TO_BE_IMPLEMENTED(TemporalPlainDatePrototypeToString)
TO_BE_IMPLEMENTED(TemporalPlainDatePrototypeToJSON)
/* Temporal.PlaneTime */
/* Temporal #sec-temporal.plaintime.from */
TO_BE_IMPLEMENTED(TemporalPlainTimeFrom)
/* Temporal #sec-temporal.plaintime.compare */
TO_BE_IMPLEMENTED(TemporalPlainTimeCompare)
/* Temporal #sec-temporal.plaintime.prototype.add */
......@@ -606,6 +604,7 @@ TEMPORAL_GET_SMI(PlainTime, Second, iso_second)
TEMPORAL_GET_SMI(PlainTime, Millisecond, iso_millisecond)
TEMPORAL_GET_SMI(PlainTime, Microsecond, iso_microsecond)
TEMPORAL_GET_SMI(PlainTime, Nanosecond, iso_nanosecond)
TEMPORAL_METHOD2(PlainTime, From)
TEMPORAL_PROTOTYPE_METHOD0(PlainTime, GetISOFields, getISOFields)
TEMPORAL_VALUE_OF(PlainTime)
......
This diff is collapsed.
......@@ -225,6 +225,10 @@ class JSTemporalPlainTime
Handle<Object> second, Handle<Object> millisecond,
Handle<Object> microsecond, Handle<Object> nanosecond);
// #sec-temporal.plaintime.from
V8_WARN_UNUSED_RESULT static MaybeHandle<JSTemporalPlainTime> From(
Isolate* isolate, Handle<Object> item, Handle<Object> options);
// #sec-temporal.plaintime.prototype.getisofields
V8_WARN_UNUSED_RESULT static MaybeHandle<JSReceiver> GetISOFields(
Isolate* isolate, Handle<JSTemporalPlainTime> plain_time);
......
......@@ -320,10 +320,6 @@
# https://github.com/tc39/test262/pull/3250
'built-ins/Temporal/PlainDate/prototype/since/largestunit-higher-units': [FAIL],
# Calendar in TemporalTimeString
# https://github.com/tc39/test262/pull/3257
'built-ins/Temporal/PlainTime/from/argument-string-with-calendar': [FAIL],
# PlainTime RelativeTime
# https://github.com/tc39/proposal-temporal/pull/1862
'built-ins/Temporal/Duration/compare/calendar-temporal-object': [FAIL],
......@@ -1498,22 +1494,8 @@
'built-ins/Temporal/PlainTime/compare/calendar-temporal-object': [FAIL],
'built-ins/Temporal/PlainTime/compare/plaintime-propertybag-no-time-units': [FAIL],
'built-ins/Temporal/PlainTime/compare/use-internal-slots': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-string-with-utc-designator': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-zoneddatetime-balance-negative-time-units': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-zoneddatetime-negative-epochnanoseconds': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-zoneddatetime-timezone-getoffsetnanosecondsfor-non-integer': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-zoneddatetime-timezone-getoffsetnanosecondsfor-not-callable': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-zoneddatetime-timezone-getoffsetnanosecondsfor-out-of-range': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-zoneddatetime-timezone-getoffsetnanosecondsfor-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/from/calendar-temporal-object': [FAIL],
'built-ins/Temporal/PlainTime/from/infinity-throws-rangeerror': [FAIL],
'built-ins/Temporal/PlainTime/from/options-undefined': [FAIL],
'built-ins/Temporal/PlainTime/from/order-of-operations': [FAIL],
'built-ins/Temporal/PlainTime/from/overflow-invalid-string': [FAIL],
'built-ins/Temporal/PlainTime/from/overflow-undefined': [FAIL],
'built-ins/Temporal/PlainTime/from/overflow-wrong-type': [FAIL],
'built-ins/Temporal/PlainTime/from/plaintime-propertybag-no-time-units': [FAIL],
'built-ins/Temporal/PlainTime/from/subclassing-ignored': [FAIL],
'built-ins/Temporal/PlainTime/prototype/add/argument-not-object': [FAIL],
'built-ins/Temporal/PlainTime/prototype/add/argument-string': [FAIL],
'built-ins/Temporal/PlainTime/prototype/add/argument-string-negative-fractional-units': [FAIL],
......@@ -2554,21 +2536,10 @@
'built-ins/Temporal/PlainTime/compare/argument-string-with-time-designator': [FAIL],
'built-ins/Temporal/PlainTime/compare/basic': [FAIL],
'built-ins/Temporal/PlainTime/compare/year-zero': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-number': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-object': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-object-leap-second': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-plaindatetime': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-plaintime': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-string': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-string-invalid': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-string-leap-second': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-string-no-implicit-midnight': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-string-time-designator-required-for-disambiguation': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-string-trailing-junk': [FAIL],
'built-ins/Temporal/PlainTime/from/argument-string-with-time-designator': [FAIL],
'built-ins/Temporal/PlainTime/from/options-invalid': [FAIL],
'built-ins/Temporal/PlainTime/from/overflow-constrain': [FAIL],
'built-ins/Temporal/PlainTime/from/overflow-reject': [FAIL],
'built-ins/Temporal/PlainTime/from/year-zero': [FAIL],
'built-ins/Temporal/PlainTime/prototype/add/argument-duration': [FAIL],
'built-ins/Temporal/PlainTime/prototype/add/argument-higher-units': [FAIL],
......@@ -2654,7 +2625,6 @@
'built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfExpand': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/roundingmode-trunc': [FAIL],
'built-ins/Temporal/PlainTime/prototype/until/year-zero': [FAIL],
'built-ins/Temporal/PlainTime/prototype/valueOf/basic': [FAIL],
'built-ins/Temporal/PlainTime/prototype/with/copy-properties-not-undefined': [FAIL],
'built-ins/Temporal/PlainYearMonth/basic': [FAIL],
'built-ins/Temporal/PlainYearMonth/compare/argument-cast': [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