Name Description Size
argument-leap-second.js --- esid: sec-temporal.plaindate.from description: Leap second is a valid ISO string for PlainDate includes: [temporalHelpers.js] features: [Temporal] --- 1277
argument-number.js --- esid: sec-temporal.plaindate.from description: A number cannot be used in place of a Temporal.PlainDate features: [Temporal] --- 629
argument-object-invalid.js --- esid: sec-temporal.plaindate.from description: Property bag is correctly converted into PlainDate includes: [temporalHelpers.js] features: [Temporal] --- 1535
argument-object-valid.js --- esid: sec-temporal.plaindate.from description: Property bag is correctly converted into PlainDate includes: [temporalHelpers.js] features: [Temporal] --- 1007
argument-plaindate.js --- esid: sec-temporal.plaindate.from description: A PlainDate object is copied, not returned directly includes: [temporalHelpers.js] features: [Temporal] --- 799
argument-plaindatetime.js --- esid: sec-temporal.plaindate.from description: Fast path for converting Temporal.PlainDateTime to Temporal.PlainDate by reading internal slots info: | sec-temporal.plaindate.from step 3: 3. Return ? ToTemporalDate(_item_, _options_). 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] --- 1002
argument-propertybag-calendar-case-insensitive.js --- esid: sec-temporal.plaindate.from description: The calendar name is case-insensitive includes: [temporalHelpers.js] features: [Temporal] --- 769
argument-propertybag-calendar-iso-string.js --- esid: sec-temporal.plaindate.from description: An ISO 8601 string can be converted to a calendar ID in Calendar includes: [temporalHelpers.js] features: [Temporal] --- 967
argument-propertybag-calendar-leap-second.js --- esid: sec-temporal.plaindate.from description: Leap second is a valid ISO string for a calendar in a property bag includes: [temporalHelpers.js] features: [Temporal] --- 698
argument-propertybag-calendar-number.js --- esid: sec-temporal.plaindate.from description: A number as calendar in a property bag is not accepted features: [Temporal] --- 673
argument-propertybag-calendar-string.js --- esid: sec-temporal.plaindate.from description: A calendar ID is valid input for Calendar includes: [temporalHelpers.js] features: [Temporal] --- 727
argument-propertybag-calendar-wrong-type.js --- esid: sec-temporal.plaindate.from description: > Appropriate error thrown when a calendar property from a property bag cannot be converted to a calendar ID features: [BigInt, Symbol, Temporal] --- 1322
argument-propertybag-calendar-year-zero.js --- esid: sec-temporal.plaindate.from description: Negative zero, as an extended year, is rejected features: [Temporal, arrow-function] --- 781
argument-propertybag-calendar.js --- esid: sec-temporal.plaindate.from description: Property bag is correctly converted into PlainDate includes: [temporalHelpers.js] features: [Temporal] --- 674
argument-string-calendar-annotation-invalid-key.js --- esid: sec-temporal.plaindate.from description: Annotation keys are lowercase-only features: [Temporal] --- 773
argument-string-calendar-annotation.js --- esid: sec-temporal.plaindate.from description: Various forms of calendar annotation; critical flag has no effect features: [Temporal] includes: [temporalHelpers.js] --- 1119
argument-string-critical-unknown-annotation.js --- esid: sec-temporal.plaindate.from description: Unknown annotations with critical flag are rejected features: [Temporal] --- 849
argument-string-date-with-utc-offset.js --- esid: sec-temporal.plaindate.from description: UTC offset not valid with format that does not include a time features: [Temporal] includes: [temporalHelpers.js] --- 1192
argument-string-invalid.js --- esid: sec-temporal.plaindate.from 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] --- 1635
argument-string-limits.js --- esid: sec-temporal.plaindate.from description: ISO strings at the edges of the representable range features: [Temporal] --- 861
argument-string-minus-sign.js --- esid: sec-temporal.plaindate.from description: Non-ASCII minus sign is not acceptable features: [Temporal] --- 621
argument-string-multiple-calendar.js --- esid: sec-temporal.plaindate.from description: > More than one calendar annotation is not syntactical if any have the criical flag features: [Temporal] --- 1045
argument-string-multiple-time-zone.js --- esid: sec-temporal.plaindate.from description: More than one time zone annotation is not syntactical features: [Temporal] --- 795
argument-string-time-separators.js --- esid: sec-temporal.plaindate.from description: Time separator in string argument can vary features: [Temporal] includes: [temporalHelpers.js] --- 770
argument-string-time-zone-annotation.js --- esid: sec-temporal.plaindate.from description: Various forms of time zone annotation; critical flag has no effect features: [Temporal] includes: [temporalHelpers.js] --- 1411
argument-string-trailing-junk.js --- esid: sec-temporal.plaindate.from description: RangeError thrown if a string with trailing junk is used as a PlainDate features: [Temporal, arrow-function] --- 559
argument-string-unknown-annotation.js --- esid: sec-temporal.plaindate.from description: Various forms of unknown annotation features: [Temporal] includes: [temporalHelpers.js] --- 1017
argument-string-with-utc-designator.js --- esid: sec-temporal.plaindate.from description: RangeError thrown if a string with UTC designator is used as a PlainDate features: [Temporal, arrow-function] --- 687
argument-string.js --- esid: sec-temporal.plaindate.from description: various interesting string arguments. includes: [temporalHelpers.js] features: [Temporal] --- 1671
argument-wrong-type.js --- esid: sec-temporal.plaindate.from description: > Appropriate error thrown when argument cannot be converted to a valid string or property bag for PlainDate features: [BigInt, Symbol, Temporal] --- 1287
argument-zoneddatetime-slots.js --- esid: sec-temporal.plaindate.from description: Getters are not called when converting a ZonedDateTime to a PlainDate. includes: [compareArray.js] features: [Temporal] --- 1264
argument-zoneddatetime.js --- esid: sec-temporal.plaindate.from description: A ZonedDateTime object is handled separately includes: [temporalHelpers.js] features: [Temporal] --- 740
browser.js 0
builtin.js --- esid: sec-temporal.plaindate.from description: Tests that Temporal.PlainDate.from 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] --- 1477
calendar-temporal-object.js --- esid: sec-temporal.plaindate.from description: Fast path for converting other Temporal objects to Temporal.Calendar by reading internal slots info: | sec-temporal.plaindate.from step 3: 3. Return ? ToTemporalDate(_item_, _options_). 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] --- 1438
infinity-throws-rangeerror.js --- description: Throws if any value in the property bag is Infinity or -Infinity esid: sec-temporal.plaindate.from includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 1143
length.js --- esid: sec-temporal.plaindate.from description: Temporal.PlainDate.from.length is 1 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] --- 1164
limits.js --- esid: sec-temporal.plaindate.from description: PlainDate.from enforces the supported range includes: [temporalHelpers.js] features: [Temporal] --- 1278
name.js --- esid: sec-temporal.plaindate.from description: Temporal.PlainDate.from.name is "from" 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] --- 999
not-a-constructor.js --- esid: sec-temporal.plaindate.from description: Temporal.PlainDate.from 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] --- 866
observable-get-overflow-argument-primitive.js --- esid: sec-temporal.plaindate.from description: overflow property is extracted with string argument. includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 1248
observable-get-overflow-argument-string-invalid.js --- esid: sec-temporal.plaindate.from description: overflow property is not extracted with ISO-invalid string argument. includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 718
one-of-era-erayear-undefined.js --- esid: sec-temporal.plaindate.from description: Does not throw a RangeError if only one of era/eraYear fields is present features: [Temporal] includes: [temporalHelpers.js] --- 719
options-object.js --- esid: sec-temporal.plaindate.prototype.from description: Empty object may be used as options includes: [temporalHelpers.js] features: [Temporal] --- 746
options-undefined.js --- esid: sec-temporal.plaindate.from description: Verify that undefined options are handled correctly. features: [Temporal] --- 687
options-wrong-type.js --- esid: sec-temporal.plaindate.from description: TypeError thrown when options argument is a primitive features: [BigInt, Symbol, Temporal] --- 1319
order-of-operations.js --- esid: sec-temporal.plaindate.from description: Properties on an object passed to from() are accessed in the correct order includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 2247
out-of-range.js --- esid: sec-temporal.plaindate.from description: Should throw RangeError for input not in valid range. info: | 1. Let calendar be the this value. 2. Perform ? RequireInternalSlot(calendar, [[InitializedTemporalCalendar]]). 3. Assert: calendar.[[Identifier]] is "iso8601". 4. If Type(fields) is not Object, throw a TypeError exception. 5. Set options to ? GetOptionsObject(options). 6. Let result be ? ISODateFromFields(fields, options). 7. Return ? CreateTemporalDate(result.[[Year]], result.[[Month]], result.[[Day]], calendar). features: [Temporal, arrow-function] --- 5675
overflow-invalid-string.js --- esid: sec-temporal.plaindate.from description: RangeError thrown when overflow option not one of the allowed string values info: | sec-getoption step 10: 10. If _values_ is not *undefined* and _values_ does not contain an element equal to _value_, throw a *RangeError* exception. sec-temporal-totemporaloverflow step 1: 1. Return ? GetOption(_normalizedOptions_, *"overflow"*, « String », « *"constrain"*, *"reject"* », *"constrain"*). sec-temporal-totemporaldate steps 2–3: 2. If Type(_item_) is Object, then ... g. Return ? DateFromFields(_calendar_, _fields_, _options_). 3. Perform ? ToTemporalOverflow(_options_). sec-temporal.plaindate.from steps 2–3: 2. If Type(_item_) is Object and _item_ has an [[InitializedTemporalDate]] internal slot, then a. Perform ? ToTemporalOverflow(_options_). b. Return ... 3. Return ? ToTemporalDate(_item_, _options_). features: [Temporal] --- 1777
overflow-undefined.js --- esid: sec-temporal.plaindate.from description: Fallback value for overflow option info: | sec-getoption step 3: 3. If _value_ is *undefined*, return _fallback_. sec-temporal-totemporaloverflow step 1: 1. Return ? GetOption(_normalizedOptions_, *"overflow"*, « String », « *"constrain"*, *"reject"* », *"constrain"*). sec-temporal-totemporaldate steps 2–3: 2. If Type(_item_) is Object, then ... g. Return ? DateFromFields(_calendar_, _fields_, _options_). 3. Perform ? ToTemporalOverflow(_options_). sec-temporal.plaindate.from steps 2–3: 2. If Type(_item_) is Object and _item_ has an [[InitializedTemporalDate]] internal slot, then a. Perform ? ToTemporalOverflow(_options_). b. Return ... 3. Return ? ToTemporalDate(_item_, _options_). includes: [temporalHelpers.js] features: [Temporal] --- 2257
overflow-wrong-type.js --- esid: sec-temporal.plaindate.from description: Type conversions for overflow option info: | sec-getoption step 9.a: a. Set _value_ to ? ToString(_value_). sec-temporal-totemporaloverflow step 1: 1. Return ? GetOption(_normalizedOptions_, *"overflow"*, « String », « *"constrain"*, *"reject"* », *"constrain"*). sec-temporal-totemporaldate steps 2–3: 2. If Type(_item_) is Object, then ... g. Return ? DateFromFields(_calendar_, _fields_, _options_). 3. Perform ? ToTemporalOverflow(_options_). sec-temporal.plaindate.from steps 2–3: 2. If Type(_item_) is Object and _item_ has an [[InitializedTemporalDate]] internal slot, then a. Perform ? ToTemporalOverflow(_options_). b. Return ... 3. Return ? ToTemporalDate(_item_, _options_). includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 1523
prop-desc.js --- esid: sec-temporal.plaindate.from description: The "from" property of Temporal.PlainDate includes: [propertyHelper.js] features: [Temporal] --- 623
shell.js --- description: | Test if a given function is a constructor function. defines: [isConstructor] features: [Reflect.construct] --- 596
subclassing-ignored.js --- esid: sec-temporal.plaindate.from description: The receiver is never called when calling from() includes: [temporalHelpers.js] features: [Temporal] --- 583
with-year-month-day-need-constrain.js --- esid: sec-temporal.plaindate.from description: Property bag with year/month/day and need constrain info: | 1. Let calendar be the this value. 2. Perform ? RequireInternalSlot(calendar, [[InitializedTemporalCalendar]]). 3. Assert: calendar.[[Identifier]] is "iso8601". 4. If Type(fields) is not Object, throw a TypeError exception. 5. Set options to ? GetOptionsObject(options). 6. Let result be ? ISODateFromFields(fields, options). 7. Return ? CreateTemporalDate(result.[[Year]], result.[[Month]], result.[[Day]], calendar). features: [Temporal] includes: [temporalHelpers.js] --- 3454
with-year-month-day.js --- esid: sec-temporal.plaindate.from description: With year/month/day info: | 1. Let calendar be the this value. 2. Perform ? RequireInternalSlot(calendar, [[InitializedTemporalCalendar]]). 3. Assert: calendar.[[Identifier]] is "iso8601". 4. If Type(fields) is not Object, throw a TypeError exception. 5. Set options to ? GetOptionsObject(options). 6. Let result be ? ISODateFromFields(fields, options). 7. Return ? CreateTemporalDate(result.[[Year]], result.[[Month]], result.[[Day]], calendar). features: [Temporal] includes: [temporalHelpers.js] --- 973
with-year-monthCode-day-need-constrain.js --- esid: sec-temporal.plaindate.from description: With year, monthCode and day and need constrain info: | 1. Let calendar be the this value. 2. Perform ? RequireInternalSlot(calendar, [[InitializedTemporalCalendar]]). 3. Assert: calendar.[[Identifier]] is "iso8601". 4. If Type(fields) is not Object, throw a TypeError exception. 5. Set options to ? GetOptionsObject(options). 6. Let result be ? ISODateFromFields(fields, options). 7. Return ? CreateTemporalDate(result.[[Year]], result.[[Month]], result.[[Day]], calendar). features: [Temporal] includes: [temporalHelpers.js] --- 3211
with-year-monthCode-day.js --- esid: sec-temporal.plaindate.from description: Property bag with year, monthCode and day info: | 1. Let calendar be the this value. 2. Perform ? RequireInternalSlot(calendar, [[InitializedTemporalCalendar]]). 3. Assert: calendar.[[Identifier]] is "iso8601". 4. If Type(fields) is not Object, throw a TypeError exception. 5. Set options to ? GetOptionsObject(options). 6. Let result be ? ISODateFromFields(fields, options). 7. Return ? CreateTemporalDate(result.[[Year]], result.[[Month]], result.[[Day]], calendar). features: [Temporal] includes: [temporalHelpers.js] --- 1007
year-zero.js --- esid: sec-temporal.plaindate.from description: Negative zero, as an extended year, is rejected features: [Temporal, arrow-function] --- 690