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