argument-duration-max.js |
---
esid: sec-temporal.duration.from
description: Maximum allowed duration
features: [Temporal]
--- |
3249 |
argument-duration-out-of-range.js |
---
esid: sec-temporal.duration.from
description: Duration-like argument that is out of range
features: [Temporal]
--- |
3432 |
argument-duration-precision-exact-numerical-values.js |
---
esid: sec-temporal.duration.from
description: >
Duration-like argument performs the range check with minimal floating point
precision loss
features: [Temporal]
--- |
1366 |
argument-duration.js |
---
esid: sec-temporal.duration.from
description: A Duration object is copied, not returned directly
includes: [temporalHelpers.js]
features: [Temporal]
--- |
755 |
argument-existing-object.js |
---
esid: sec-temporal.duration.from
description: Property bag is converted to Duration; Duration is copied
includes: [temporalHelpers.js]
features: [Temporal]
--- |
762 |
argument-non-string.js |
---
esid: sec-temporal.duration.from
description: Appropriate error thrown if primitive input cannot convert to a valid string
features: [Temporal]
--- |
843 |
argument-object-invalid.js |
---
esid: sec-temporal.duration.from
description: Invalid object arguments.
features: [Temporal]
--- |
806 |
argument-string-fractional-precision.js |
---
esid: sec-temporal.duration.from
description: >
Fractional parts are computed using exact mathematical values.
includes: [temporalHelpers.js]
features: [Temporal]
--- |
1414 |
argument-string-fractional-units-rounding-mode.js |
---
esid: sec-temporal.duration.from
description: Strings with fractional duration units are rounded with the correct rounding mode
includes: [temporalHelpers.js]
features: [Temporal]
--- |
1405 |
argument-string-fractional-with-zero-subparts.js |
---
esid: sec-temporal.duration.from
description: >
Throws when a fractional unit is present and a sub-part is zero.
features: [Temporal]
--- |
875 |
argument-string-invalid.js |
---
esid: sec-temporal.duration.from
description: Invalid string arguments.
features: [Temporal]
--- |
735 |
argument-string-negative-fractional-units.js |
---
esid: sec-temporal.duration.prototype.add
description: Strings with fractional duration units are treated with the correct sign
includes: [temporalHelpers.js]
features: [Temporal]
--- |
814 |
argument-string.js |
---
esid: sec-temporal.duration.from
description: Basic string arguments.
includes: [temporalHelpers.js]
features: [Temporal]
--- |
2405 |
browser.js |
|
0 |
builtin.js |
---
esid: sec-temporal.duration.from
description: Tests that Temporal.Duration.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]
--- |
1471 |
infinity-throws-rangeerror.js |
---
description: Temporal.Duration.from handles a property bag if any value is Infinity
esid: sec-temporal.duration.from
features: [Temporal]
--- |
930 |
length.js |
---
esid: sec-temporal.duration.from
description: Temporal.Duration.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]
--- |
1161 |
name.js |
---
esid: sec-temporal.duration.from
description: Temporal.Duration.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]
--- |
996 |
negative-inifinity-throws-rangeerror.js |
---
description: Temporal.Duration.from handles a property bag if any value is -Infinity
esid: sec-temporal.duration.from
features: [Temporal]
--- |
933 |
non-integer-throws-rangeerror.js |
---
esid: sec-temporal.duration.prototype.with
description: A non-integer value for any recognized property in the property bag, throws a RangeError
features: [Temporal]
--- |
768 |
not-a-constructor.js |
---
esid: sec-temporal.duration.from
description: Temporal.Duration.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]
--- |
861 |
order-of-operations.js |
---
esid: sec-temporal.duration.from
description: Properties on an object passed to from() are accessed in the correct order
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
--- |
1792 |
prop-desc.js |
---
esid: sec-temporal.duration.from
description: The "from" property of Temporal.Duration
includes: [propertyHelper.js]
features: [Temporal]
--- |
618 |
shell.js |
---
description: |
Test if a given function is a constructor function.
defines: [isConstructor]
features: [Reflect.construct]
--- |
596 |
string-with-skipped-units.js |
---
esid: sec-temporal.duration.from
description: |
Creating a Duration from an ISO 8601 string with an absent designator between
two other designators
includes: [temporalHelpers.js]
features: [Temporal]
--- |
1229 |
subclassing-ignored.js |
---
esid: sec-temporal.duration.from
description: The receiver is never called when calling from()
includes: [temporalHelpers.js]
features: [Temporal]
--- |
613 |