| basic.js |
---
esid: sec-temporal.duration.prototype.abs
description: Temporal.Duration.prototype.abs will return absolute value of the input duration.
info: |
1. Let duration be the this value.
2. Perform ? RequireInternalSlot(duration, [[InitializedTemporalDuration]]).
3. Return ? CreateTemporalDuration(abs(duration.[[Years]]), abs(duration.[[Months]]), abs(duration.[[Weeks]]), abs(duration.[[Days]]), abs(duration.[[Hours]]), abs(duration.[[Minutes]]), abs(duration.[[Seconds]]), abs(duration.[[Milliseconds]]), abs(duration.[[Microseconds]]), abs(duration.[[Nanoseconds]])).
features: [Temporal]
includes: [temporalHelpers.js]
--- |
1871 |
- |
| branding.js |
---
esid: sec-temporal.duration.prototype.abs
description: Throw a TypeError if the receiver is invalid
features: [Symbol, Temporal]
--- |
1077 |
- |
| browser.js |
|
0 |
- |
| builtin.js |
---
esid: sec-temporal.duration.prototype.abs
description: >
Tests that Temporal.Duration.prototype.abs
meets the requirements for built-in objects defined by the
introduction of chapter 17 of the ECMAScript Language Specification.
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]
--- |
1623 |
- |
| length.js |
---
esid: sec-temporal.duration.prototype.abs
description: Temporal.Duration.prototype.abs.length is 0
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]
--- |
1188 |
- |
| name.js |
---
esid: sec-temporal.duration.prototype.abs
description: Temporal.Duration.prototype.abs.name is "abs".
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]
--- |
1022 |
- |
| new-object.js |
---
esid: sec-temporal.duration.prototype.abs
description: Temporal.Duration.prototype.abs returns a new object.
features: [Temporal]
--- |
1008 |
- |
| not-a-constructor.js |
---
esid: sec-temporal.duration.prototype.abs
description: >
Temporal.Duration.prototype.abs 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]
--- |
910 |
- |
| prop-desc.js |
---
esid: sec-temporal.duration.prototype.abs
description: The "abs" property of Temporal.Duration.prototype
includes: [propertyHelper.js]
features: [Temporal]
--- |
663 |
- |
| shell.js |
---
description: |
Test if a given function is a constructor function.
defines: [isConstructor]
features: [Reflect.construct]
--- |
596 |
- |
| subclassing-ignored.js |
---
esid: sec-temporal.duration.prototype.abs
description: Objects of a subclass are never created as return values.
includes: [temporalHelpers.js]
features: [Temporal]
--- |
643 |
- |