Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Math / trunc / length.js
blob593f893d822bd210abf76fe14e78fef57829aebc
1 // Copyright 2015 Microsoft Corporation. All rights reserved.
2 // This code is governed by the license found in the LICENSE file.
4 /*---
5 description: length property of Math.trunc
6 es6id: 20.2.2.35
7 info: |
8   Math.trunc ( x )
10   17 ECMAScript Standard Built-in Objects:
11     Every built-in Function object, including constructors, that is not
12     identified as an anonymous function has a name property whose value
13     is a String.
15     Unless otherwise specified, the name property of a built-in Function
16     object, if it exists, has the attributes { [[Writable]]: false,
17     [[Enumerable]]: false, [[Configurable]]: true }.
18 includes: [propertyHelper.js]
19 ---*/
21 assert.sameValue(Math.trunc.length, 1);
23 verifyNotEnumerable(Math.trunc, "length");
24 verifyNotWritable(Math.trunc, "length");
25 verifyConfigurable(Math.trunc, "length");
27 reportCompare(0, 0);