argument-cast.js |
---
esid: sec-temporal.plainyearmonth.compare
description: compare() casts its arguments
features: [Temporal]
--- |
1157 |
argument-number.js |
---
esid: sec-temporal.plainyearmonth.compare
description: A number is invalid in place of an ISO string for Temporal.PlainYearMonth
features: [Temporal]
--- |
1015 |
argument-propertybag-calendar-case-insensitive.js |
---
esid: sec-temporal.plainyearmonth.compare
description: The calendar name is case-insensitive
features: [Temporal]
--- |
1267 |
argument-propertybag-calendar-iso-string.js |
---
esid: sec-temporal.plainyearmonth.compare
description: An ISO 8601 string can be converted to a calendar ID in Calendar
features: [Temporal]
--- |
1152 |
argument-propertybag-calendar-leap-second.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Leap second is a valid ISO string for a calendar in a property bag
features: [Temporal]
--- |
971 |
argument-propertybag-calendar-number.js |
---
esid: sec-temporal.plainyearmonth.compare
description: A number as calendar in a property bag is not accepted
features: [Temporal]
--- |
1016 |
argument-propertybag-calendar-string.js |
---
esid: sec-temporal.plainyearmonth.compare
description: A calendar ID is valid input for Calendar
features: [Temporal]
--- |
902 |
argument-propertybag-calendar-wrong-type.js |
---
esid: sec-temporal.plainyearmonth.compare
description: >
Appropriate error thrown when a calendar property from a property bag cannot
be converted to a calendar ID
features: [BigInt, Symbol, Temporal]
--- |
1983 |
argument-propertybag-calendar-year-zero.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Negative zero, as an extended year, is rejected
features: [Temporal, arrow-function]
--- |
1045 |
argument-string-calendar-annotation-invalid-key.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Annotation keys are lowercase-only
features: [Temporal]
--- |
1138 |
argument-string-calendar-annotation.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Various forms of calendar annotation; critical flag has no effect
features: [Temporal]
--- |
1025 |
argument-string-critical-unknown-annotation.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Unknown annotations with critical flag are rejected
features: [Temporal]
--- |
1170 |
argument-string-date-with-utc-offset.js |
---
esid: sec-temporal.plainyearmonth.compare
description: UTC offset not valid with format that does not include a time
features: [Temporal]
--- |
1700 |
argument-string-invalid.js |
---
esid: sec-temporal.plainyearmonth.compare
description: An invalid ISO string is never supported
includes: [temporalHelpers.js]
features: [Temporal]
--- |
849 |
argument-string-limits.js |
---
esid: sec-temporal.plainyearmonth.compare
description: ISO strings at the edges of the representable range
features: [Temporal]
--- |
1364 |
argument-string-minus-sign.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Non-ASCII minus sign is not acceptable
features: [Temporal]
--- |
943 |
argument-string-multiple-calendar.js |
---
esid: sec-temporal.plainyearmonth.compare
description: >
More than one calendar annotation is not syntactical if any have the criical
flag
features: [Temporal]
--- |
1404 |
argument-string-multiple-time-zone.js |
---
esid: sec-temporal.plainyearmonth.compare
description: More than one time zone annotation is not syntactical
features: [Temporal]
--- |
1113 |
argument-string-time-separators.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Time separator in string argument can vary
features: [Temporal]
--- |
1007 |
argument-string-time-zone-annotation.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Various forms of time zone annotation; critical flag has no effect
features: [Temporal]
--- |
1214 |
argument-string-unknown-annotation.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Various forms of unknown annotation
features: [Temporal]
--- |
1008 |
argument-string-with-utc-designator.js |
---
esid: sec-temporal.plainyearmonth.compare
description: RangeError thrown if a string with UTC designator is used as a PlainYearMonth
features: [Temporal, arrow-function]
--- |
1060 |
argument-string.js |
---
esid: sec-temporal.plainyearmonth.compare
description: A string is parsed into the correct object when passed as the argument
includes: [temporalHelpers.js]
features: [Temporal]
--- |
818 |
argument-wrong-type.js |
---
esid: sec-temporal.plainyearmonth.compare
description: >
Appropriate error thrown when argument cannot be converted to a valid string
or property bag for PlainYearMonth
features: [BigInt, Symbol, Temporal]
--- |
1968 |
basic.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Basic tests for compare()
features: [Temporal]
--- |
936 |
browser.js |
|
0 |
builtin.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Tests that Temporal.PlainYearMonth.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]
--- |
1600 |
calendar-temporal-object.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Fast path for converting other Temporal objects to Temporal.Calendar by reading internal slots
info: |
sec-temporal.plainyearmonth.compare steps 1–2:
1. Set _one_ to ? ToTemporalYearMonth(_one_).
2. Set _two_ to ? ToTemporalYearMonth(_two_).
sec-temporal-totemporaldate 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]
--- |
1635 |
compare-reference-day.js |
---
esid: sec-temporal.plainyearmonth.compare
description: compare() takes the reference day into account
features: [Temporal]
--- |
652 |
infinity-throws-rangeerror.js |
---
description: Throws if any value in a property bag for either argument is Infinity or -Infinity
esid: sec-temporal.plainyearmonth.compare
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
--- |
1667 |
leap-second.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Leap second is a valid ISO string for PlainYearMonth
features: [Temporal]
--- |
1371 |
length.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Temporal.PlainYearMonth.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]
--- |
1263 |
name.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Temporal.PlainYearMonth.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]
--- |
1105 |
not-a-constructor.js |
---
esid: sec-temporal.plainyearmonth.compare
description: Temporal.PlainYearMonth.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]
--- |
981 |
prop-desc.js |
---
esid: sec-temporal.plainyearmonth.compare
description: The "compare" property of Temporal.PlainYearMonth
includes: [propertyHelper.js]
features: [Temporal]
--- |
738 |
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.plainyearmonth.compare
description: compare() ignores the observable properties and uses internal slots
features: [Temporal]
--- |
830 |
year-zero.js |
---
description: Negative zero, as an extended year, fails
esid: sec-temporal.plainyearmonth.compare
features: [Temporal]
--- |
1012 |