argument-number.js |
---
esid: sec-temporal.plaindate.compare
description: A number cannot be used in place of a Temporal.PlainDate
features: [Temporal]
--- |
942 |
argument-object.js |
---
esid: sec-temporal.plaindate.compare
description: basic object coercion in arguments
features: [Temporal]
--- |
1410 |
argument-plaindatetime.js |
---
esid: sec-temporal.plaindate.compare
description: Fast path for converting Temporal.PlainDateTime to Temporal.PlainDate by reading internal slots
info: |
sec-temporal.plaindate.compare steps 1–2:
1. Set _one_ to ? ToTemporalDate(_one_).
2. Set _two_ to ? ToTemporalDate(_two_).
sec-temporal-totemporaldate step 2.b:
b. If _item_ has an [[InitializedTemporalDateTime]] internal slot, then
i. Return ! CreateTemporalDate(_item_.[[ISOYear]], _item_.[[ISOMonth]], _item_.[[ISODay]], _item_.[[Calendar]]).
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
--- |
2620 |
argument-propertybag-calendar-case-insensitive.js |
---
esid: sec-temporal.plaindate.compare
description: The calendar name is case-insensitive
features: [Temporal]
--- |
1251 |
argument-propertybag-calendar-iso-string.js |
---
esid: sec-temporal.plaindate.compare
description: An ISO 8601 string can be converted to a calendar ID in Calendar
features: [Temporal]
--- |
1146 |
argument-propertybag-calendar-leap-second.js |
---
esid: sec-temporal.plaindate.compare
description: Leap second is a valid ISO string for a calendar in a property bag
features: [Temporal]
--- |
948 |
argument-propertybag-calendar-number.js |
---
esid: sec-temporal.plaindate.compare
description: A number as calendar in a property bag is not accepted
features: [Temporal]
--- |
1010 |
argument-propertybag-calendar-string.js |
---
esid: sec-temporal.plaindate.compare
description: A calendar ID is valid input for Calendar
features: [Temporal]
--- |
896 |
argument-propertybag-calendar-wrong-type.js |
---
esid: sec-temporal.plaindate.compare
description: >
Appropriate error thrown when a calendar property from a property bag cannot
be converted to a calendar ID
features: [BigInt, Symbol, Temporal]
--- |
1958 |
argument-propertybag-calendar-year-zero.js |
---
esid: sec-temporal.plaindate.compare
description: Negative zero, as an extended year, is rejected
features: [Temporal, arrow-function]
--- |
1030 |
argument-string-calendar-annotation-invalid-key.js |
---
esid: sec-temporal.plaindate.compare
description: Annotation keys are lowercase-only
features: [Temporal]
--- |
1105 |
argument-string-calendar-annotation.js |
---
esid: sec-temporal.plaindate.compare
description: Various forms of calendar annotation; critical flag has no effect
features: [Temporal]
--- |
1143 |
argument-string-critical-unknown-annotation.js |
---
esid: sec-temporal.plaindate.compare
description: Unknown annotations with critical flag are rejected
features: [Temporal]
--- |
1181 |
argument-string-date-with-utc-offset.js |
---
esid: sec-temporal.plaindate.compare
description: UTC offset not valid with format that does not include a time
features: [Temporal]
--- |
1477 |
argument-string-invalid.js |
---
esid: sec-temporal.plaindate.compare
description: >
RangeError thrown if an invalid ISO string (or syntactically valid ISO string
that is not supported) is used as a PlainDate
features: [Temporal, arrow-function]
--- |
1960 |
argument-string-limits.js |
---
esid: sec-temporal.plaindate.compare
description: ISO strings at the edges of the representable range
features: [Temporal]
--- |
1255 |
argument-string-minus-sign.js |
---
esid: sec-temporal.plaindate.compare
description: Non-ASCII minus sign is not acceptable
features: [Temporal]
--- |
928 |
argument-string-multiple-calendar.js |
---
esid: sec-temporal.plaindate.compare
description: >
More than one calendar annotation is not syntactical if any have the criical
flag
features: [Temporal]
--- |
1389 |
argument-string-multiple-time-zone.js |
---
esid: sec-temporal.plaindate.compare
description: More than one time zone annotation is not syntactical
features: [Temporal]
--- |
1124 |
argument-string-time-separators.js |
---
esid: sec-temporal.plaindate.compare
description: Time separator in string argument can vary
features: [Temporal]
--- |
974 |
argument-string-time-zone-annotation.js |
---
esid: sec-temporal.plaindate.compare
description: Various forms of time zone annotation; critical flag has no effect
features: [Temporal]
--- |
1435 |
argument-string-unknown-annotation.js |
---
esid: sec-temporal.plaindate.compare
description: Various forms of unknown annotation
features: [Temporal]
--- |
1041 |
argument-string-with-utc-designator.js |
---
esid: sec-temporal.plaindate.compare
description: RangeError thrown if a string with UTC designator is used as a PlainDate
features: [Temporal, arrow-function]
--- |
1028 |
argument-string.js |
---
esid: sec-temporal.plaindate.compare
description: basic string coercion in arguments
features: [Temporal]
--- |
1059 |
argument-wrong-type.js |
---
esid: sec-temporal.plaindate.compare
description: >
Appropriate error thrown when argument cannot be converted to a valid string
or property bag for PlainDate
features: [BigInt, Symbol, Temporal]
--- |
1918 |
argument-zoneddatetime-slots.js |
---
esid: sec-temporal.plaindate.compare
description: Getters are not called when converting a ZonedDateTime to a PlainDate.
includes: [compareArray.js]
features: [Temporal]
--- |
1454 |
argument-zoneddatetime.js |
---
esid: sec-temporal.plaindate.compare
description: ZonedDateTime is supported.
features: [Temporal]
--- |
979 |
basic.js |
---
esid: sec-temporal.plaindate.compare
description: basic tests
features: [Temporal]
--- |
846 |
browser.js |
|
0 |
builtin.js |
---
esid: sec-temporal.plaindate.compare
description: Tests that Temporal.PlainDate.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]
--- |
1570 |
calendar-temporal-object.js |
---
esid: sec-temporal.plaindate.compare
description: Fast path for converting other Temporal objects to Temporal.Calendar by reading internal slots
info: |
sec-temporal.plaindate.compare steps 1–2:
1. Set _one_ to ? ToTemporalDate(_one_).
2. Set _two_ to ? ToTemporalDate(_two_).
sec-temporal-totemporaldate step 2.c:
c. 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]
--- |
1626 |
infinity-throws-rangeerror.js |
---
description: Throws if any value in a property bag for either argument is Infinity or -Infinity
esid: sec-temporal.plaindate.compare
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
--- |
1655 |
leap-second.js |
---
esid: sec-temporal.plaindate.compare
description: Leap second is a valid ISO string for PlainDate
features: [Temporal]
--- |
1287 |
length.js |
---
esid: sec-temporal.plaindate.compare
description: Temporal.PlainDate.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]
--- |
1248 |
name.js |
---
esid: sec-temporal.plaindate.compare
description: Temporal.PlainDate.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]
--- |
1089 |
not-a-constructor.js |
---
esid: sec-temporal.plaindate.compare
description: Temporal.PlainDate.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]
--- |
956 |
not-same-object.js |
---
esid: sec-temporal.plaindate.compare
description: Dates are equal even if they are not the same object
features: [Temporal]
--- |
717 |
prop-desc.js |
---
esid: sec-temporal.plaindate.compare
description: The "compare" property of Temporal.PlainDate
includes: [propertyHelper.js]
features: [Temporal]
--- |
713 |
shell.js |
---
description: |
Test if a given function is a constructor function.
defines: [isConstructor]
features: [Reflect.construct]
--- |
596 |
use-internal-slots.js |
---
esid: sec-temporal-compareisodate
description: compare() ignores the observable properties and uses internal slots
features: [Temporal]
--- |
851 |
year-zero.js |
---
description: Negative zero, as an extended year, fails
esid: sec-temporal.plaindate.compare
features: [Temporal]
--- |
978 |