| 1 |
// Copyright 2015 Microsoft Corporation. All rights reserved. |
| 2 |
// This code is governed by the license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es6id: 20.2.2.19 |
| 6 |
description: length property of Math.imul |
| 7 |
info: | |
| 8 |
Math.imul ( x, y ) |
| 9 |
|
| 10 |
17 ECMAScript Standard Built-in Objects: |
| 11 |
Every built-in Function object, including constructors, has a length |
| 12 |
property whose value is an integer. Unless otherwise specified, this |
| 13 |
value is equal to the largest number of named arguments shown in the |
| 14 |
subclause headings for the function description, including optional |
| 15 |
parameters. However, rest parameters shown using the form “...name” |
| 16 |
are not included in the default argument count. |
| 17 |
|
| 18 |
Unless otherwise specified, the length property of a built-in Function |
| 19 |
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, |
| 20 |
[[Configurable]]: true }. |
| 21 |
includes: [propertyHelper.js] |
| 22 |
---*/ |
| 23 |
|
| 24 |
assert.sameValue(Math.imul.length, 2); |
| 25 |
|
| 26 |
verifyNotEnumerable(Math.imul, "length"); |
| 27 |
verifyNotWritable(Math.imul, "length"); |
| 28 |
verifyConfigurable(Math.imul, "length"); |