| length.js |
---
description: length property of Math.trunc
es6id: 20.2.2.35
info: |
Math.trunc ( 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]
--- |
776 |
- |
| Math.trunc_Infinity.js |
---
es6id: 20.2.2.35
author: Ryan Lewis
description: Return arg when called with Infinity or -Infinity.
--- |
391 |
- |
| Math.trunc_NaN.js |
---
es6id: 20.2.2.35
author: Ryan Lewis
description: Math.trunc should return NaN when called with NaN.
--- |
280 |
- |
| Math.trunc_NegDecimal.js |
---
es6id: 20.2.2.35
author: Ryan Lewis
description: Math.trunc should return -0 if called with a value between 0 and -1.
--- |
316 |
- |
| Math.trunc_PosDecimal.js |
---
es6id: 20.2.2.35
author: Ryan Lewis
description: Math.trunc should return 0 if called with a value between 0 and 1.
--- |
311 |
- |
| Math.trunc_Success.js |
---
es6id: 20.2.2.35
author: Ryan Lewis
description: Math.trunc should return 4578 if called with 4578.584949
--- |
322 |
- |
| Math.trunc_Zero.js |
---
es6id: 20.2.2.35
author: Ryan Lewis
description: Math.trunc should return 0 when called with 0.
--- |
289 |
- |
| name.js |
---
es6id: 20.2.2.35
description: >
Math.trunc.name is "trunc".
info: |
Math.trunc ( 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]
--- |
783 |
- |
| not-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
Math.trunc 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]
--- |
840 |
- |
| prop-desc.js |
---
description: Testing descriptor property of Math.trunc
includes: [propertyHelper.js]
es6id: 20.2.2.35
--- |
341 |
- |
| trunc-sampleTests.js |
---
description: sample tests for trunc
es6id: 20.2.2.35
--- |
2507 |
- |
| trunc-specialVals.js |
---
description: Math.trunc with sample values.
es6id: 20.2.2.35
--- |
733 |
- |