argument-propertybag-calendar-case-insensitive.js |
---
esid: sec-temporal.zoneddatetime.compare
description: The calendar name is case-insensitive
features: [Temporal]
--- |
1252 |
argument-propertybag-calendar-iso-string.js |
---
esid: sec-temporal.zoneddatetime.compare
description: An ISO 8601 string can be converted to a calendar ID in Calendar
features: [Temporal]
--- |
1175 |
argument-propertybag-calendar-leap-second.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Leap second is a valid ISO string for a calendar in a property bag
features: [Temporal]
--- |
1031 |
argument-propertybag-calendar-number.js |
---
esid: sec-temporal.zoneddatetime.compare
description: A number as calendar in a property bag is not accepted
features: [Temporal]
--- |
1059 |
argument-propertybag-calendar-string.js |
---
esid: sec-temporal.zoneddatetime.compare
description: A calendar ID is valid input for Calendar
features: [Temporal]
--- |
944 |
argument-propertybag-calendar-wrong-type.js |
---
esid: sec-temporal.zoneddatetime.compare
description: >
Appropriate error thrown when a calendar property from a property bag cannot
be converted to a calendar ID
features: [BigInt, Symbol, Temporal]
--- |
1923 |
argument-propertybag-calendar-year-zero.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Negative zero, as an extended year, is rejected
features: [Temporal, arrow-function]
--- |
1042 |
argument-propertybag-invalid-offset-string.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Property bag with offset property is rejected if offset is in the wrong format
features: [Temporal]
--- |
1348 |
argument-propertybag-offset-not-agreeing-with-timezone.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Property bag with offset property is rejected if offset does not agree with time zone
features: [Temporal]
--- |
984 |
argument-propertybag-timezone-string-datetime.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Conversion of ISO date-time strings to time zone IDs
features: [Temporal]
--- |
2510 |
argument-propertybag-timezone-string-leap-second.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Leap second is a valid ISO string for TimeZone
features: [Temporal]
--- |
1406 |
argument-propertybag-timezone-string-multiple-offsets.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Time zone parsing from ISO strings uses the bracketed offset, not the ISO string offset
features: [Temporal]
--- |
1042 |
argument-propertybag-timezone-string-sub-minute-offset.js |
---
esid: sec-temporal.zoneddatetime.compare
description: >
Time zone parsing from ISO strings does not accept sub-minute UTC offset as
time zone identifier
features: [Temporal]
--- |
1099 |
argument-propertybag-timezone-string-year-zero.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Negative zero, as an extended year, is rejected
features: [Temporal, arrow-function]
--- |
1049 |
argument-propertybag-timezone-string.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Time zone IDs are valid input for a time zone
features: [Temporal]
--- |
779 |
argument-propertybag-timezone-wrong-type.js |
---
esid: sec-temporal.zoneddatetime.compare
description: >
Appropriate error thrown when argument cannot be converted to a valid string
or object for TimeZone
features: [BigInt, Symbol, Temporal]
--- |
2011 |
argument-string-calendar-annotation-invalid-key.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Annotation keys are lowercase-only
features: [Temporal]
--- |
1151 |
argument-string-calendar-annotation.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Various forms of calendar annotation; critical flag has no effect
features: [Temporal]
--- |
884 |
argument-string-critical-unknown-annotation.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Unknown annotations with critical flag are rejected
features: [Temporal]
--- |
1165 |
argument-string-date-with-utc-offset.js |
---
esid: sec-temporal.zoneddatetime.compare
description: UTC offset not valid with format that does not include a time
features: [Temporal]
--- |
1427 |
argument-string-limits.js |
---
esid: sec-temporal.zoneddatetime.compare
description: ISO strings at the edges of the representable range
features: [Temporal]
--- |
1573 |
argument-string-minus-sign.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Non-ASCII minus sign is not acceptable
features: [Temporal]
--- |
1044 |
argument-string-multiple-calendar.js |
---
esid: sec-temporal.zoneddatetime.compare
description: >
More than one calendar annotation is not syntactical if any have the criical
flag
features: [Temporal]
--- |
1191 |
argument-string-multiple-time-zone.js |
---
esid: sec-temporal.zoneddatetime.compare
description: More than one time zone annotation is not syntactical
features: [Temporal]
--- |
1135 |
argument-string-sub-minute-offset.js |
---
esid: sec-temporal.zoneddatetime.compare
description: >
ISO strings cannot have sub-minute UTC offset as a time zone identifier
features: [Temporal]
--- |
921 |
argument-string-time-separators.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Time separator in string argument can vary
features: [Temporal]
--- |
1025 |
argument-string-time-zone-annotation.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Various forms of time zone annotation; critical flag has no effect
features: [Temporal]
--- |
1394 |
argument-string-unknown-annotation.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Various forms of unknown annotation
features: [Temporal]
--- |
963 |
argument-wrong-type.js |
---
esid: sec-temporal.zoneddatetime.compare
description: >
Appropriate error thrown when argument cannot be converted to a valid string
or property bag for ZonedDateTime
features: [BigInt, Symbol, Temporal]
--- |
1998 |
basic.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Temporal.ZonedDateTime.compare works
features: [Temporal]
--- |
1018 |
browser.js |
|
0 |
builtin.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Tests that Temporal.ZonedDateTime.compare meets the requirements for built-in objects
info: |
Built-in functions that are not constructors do not have a "prototype" property unless
otherwise specified in the description of a particular function.
Unless specified otherwise, a built-in object that is callable as a function is a built-in
function object with the characteristics described in 10.3. Unless specified otherwise, the
[[Extensible]] internal slot of a built-in object initially has the value true.
Unless otherwise specified every built-in function and every built-in constructor has the
Function prototype object [...] as the value of its [[Prototype]] internal slot.
features: [Temporal]
--- |
1594 |
calendar-temporal-object.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Fast path for converting other Temporal objects to Temporal.Calendar by reading internal slots
info: |
sec-temporal.zoneddatetime.compare steps 1–2:
1. Set _one_ to ? ToTemporalZonedDateTime(_one_).
2. Set _two_ to ? ToTemporalZonedDateTime(_two_).
sec-temporal-totemporalzoneddatetime step 2.b:
b. Let _calendar_ be ? GetTemporalCalendarWithISODefault(_item_).
sec-temporal-gettemporalcalendarwithisodefault step 2:
2. Return ? ToTemporalCalendarWithISODefault(_calendar_).
sec-temporal-totemporalcalendarwithisodefault step 2:
3. Return ? ToTemporalCalendar(_temporalCalendarLike_).
sec-temporal-totemporalcalendar step 1.a:
a. If _temporalCalendarLike_ has an [[InitializedTemporalDate]], [[InitializedTemporalDateTime]], [[InitializedTemporalMonthDay]], [[InitializedTemporalYearMonth]], or [[InitializedTemporalZonedDateTime]] internal slot, then
i. Return _temporalCalendarLike_.[[Calendar]].
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
--- |
1699 |
casts-arguments.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Casts first and second arguments.
features: [Temporal]
--- |
1311 |
compares-exact-time-not-clock-time.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Compares exact time, not clock time.
features: [Temporal]
--- |
971 |
disregard-time-zone-ids-if-exact-times-are-equal.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Disregards time zone IDs if exact times are equal.
features: [Temporal]
--- |
718 |
infinity-throws-rangeerror.js |
---
description: Throws if any value in a property bag for either argument is Infinity or -Infinity
esid: sec-temporal.zoneddatetime.compare
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
--- |
1878 |
leap-second.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Leap second is a valid ISO string for ZonedDateTime
features: [Temporal]
--- |
1247 |
length.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Temporal.ZonedDateTime.compare.length is 2
info: |
Every built-in function object, including constructors, has a "length" property whose value is
an integer. Unless otherwise specified, this value is equal to the largest number of named
arguments shown in the subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which are shown using the form
«...name») are not included in the default argument count.
Unless otherwise specified, the "length" property of a built-in function object has the
attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Temporal]
--- |
1260 |
name.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Temporal.ZonedDateTime.compare.name is "compare"
info: |
Every built-in function object, including constructors, that is not identified as an anonymous
function has a "name" property whose value is a String. Unless otherwise specified, this value
is the name that is given to the function in this specification.
Unless otherwise specified, the "name" property of a built-in function object, if it exists,
has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Temporal]
--- |
1101 |
not-a-constructor.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Temporal.ZonedDateTime.compare does not implement [[Construct]], is not new-able
info: |
Built-in function objects that are not identified as constructors do not implement the
[[Construct]] internal method unless otherwise specified in the description of a particular
function.
includes: [isConstructor.js]
features: [Reflect.construct, Temporal]
--- |
976 |
order-of-operations.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Properties on objects passed to compare() are accessed in the correct order
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
--- |
3258 |
prop-desc.js |
---
esid: sec-temporal.zoneddatetime.compare
description: The "compare" property of Temporal.ZonedDateTime
includes: [propertyHelper.js]
features: [Temporal]
--- |
733 |
requires-properties.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Object must contain at least the required properties.
features: [Temporal]
--- |
2351 |
shell.js |
---
description: |
Test if a given function is a constructor function.
defines: [isConstructor]
features: [Reflect.construct]
--- |
596 |
year-zero.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Negative zero, as an extended year, fails
features: [Temporal]
--- |
1006 |
zoneddatetime-string-multiple-offsets.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Sub-minute offset trailing zeroes allowed in ISO string but not in bracketed offset
features: [Temporal]
--- |
1316 |
zoneddatetime-string.js |
---
esid: sec-temporal.zoneddatetime.compare
description: Conversion of ISO date-time strings to Temporal.ZonedDateTime instances
features: [Temporal]
--- |
3148 |