Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Atomics / sub / length.js
blob07471386348511c5ad8651ce8ea3533ffcf595bb
1 // |reftest| skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
2 // Copyright (C) 2015 André Bargull. All rights reserved.
3 // Copyright (C) 2017 Mozilla Corporation. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
6 /*---
7 esid: sec-atomics.sub
8 description: >
9   Atomics.sub.length is 3.
10 info: |
11   Atomics.sub ( ia, index, val )
13   17 ECMAScript Standard Built-in Objects:
14     Every built-in Function object, including constructors, has a length
15     property whose value is an integer. Unless otherwise specified, this
16     value is equal to the largest number of named arguments shown in the
17     subclause headings for the function description, including optional
18     parameters. However, rest parameters shown using the form “...name”
19     are not included in the default argument count.
21     Unless otherwise specified, the length property of a built-in Function
22     object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
23     [[Configurable]]: true }.
24 includes: [propertyHelper.js]
25 features: [Atomics]
26 ---*/
28 verifyProperty(Atomics.sub, 'length', {
29   value: 3,
30   enumerable: false,
31   writable: false,
32   configurable: true,
33 });
35 reportCompare(0, 0);