absolute-value.js |
---
esid: sec-math.abs
description: >
Returns the absolute value of x
info: |
Math.abs ( x )
Returns the absolute value of x; the result has the same magnitude as x but
has positive sign.
--- |
833 |
browser.js |
|
0 |
length.js |
---
es6id: 20.2.2.1
description: >
Math.abs.length is 1.
info: |
Math.abs ( x )
17 ECMAScript Standard Built-in Objects:
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, including optional
parameters. However, rest parameters 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]
--- |
1035 |
name.js |
---
es6id: 20.2.2.1
description: >
Math.abs.name is "abs".
info: |
Math.abs ( x )
17 ECMAScript Standard Built-in Objects:
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, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
794 |
not-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
Math.abs does not implement [[Construct]], is not new-able
info: |
ECMAScript Function Objects
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.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js]
features: [Reflect.construct, arrow-function]
--- |
854 |
prop-desc.js |
---
esid: sec-math.abs
description: >
"abs" property of Math
info: |
Section 17: Every other data property described in clauses 18 through 26
and in Annex B.2 has the attributes { [[Writable]]: true,
[[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
--- |
577 |
S15.8.2.1_A1.js |
---
info: If x is NaN, Math.abs(x) is NaN
es5id: 15.8.2.1_A1
description: Checking if Math.abs(NaN) is NaN
--- |
309 |
S15.8.2.1_A2.js |
---
info: If x is -0, Math.abs(x) is +0
es5id: 15.8.2.1_A2
description: Checking if Math.abs(-0) equals to +0
--- |
309 |
S15.8.2.1_A3.js |
---
info: If x is -Infinity, Math.abs(x) is +Infinity
es5id: 15.8.2.1_A3
description: Checking if Math.abs(-Infinity) equals to +Infinity
--- |
419 |
shell.js |
---
description: |
Test if a given function is a constructor function.
defines: [isConstructor]
features: [Reflect.construct]
--- |
596 |