Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Atomics/prop-desc.js

raw
1 // Copyright (C) 2016 The V8 Project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-atomics-object
6 description: >
7 Property descriptor of Atomics
8 info: |
9 The Atomics Object
10
11 [...]
12 The Atomics object is not a function object. It does not have a [[Construct]]
13 internal method; it is not possible to use the Atomics object as a constructor
14 with the new operator. The Atomics object also does not have a [[Call]] internal
15 method; it is not possible to invoke the Atomics object as a function.
16
17 17 ECMAScript Standard Built-in Objects:
18
19 Every other data property described in clauses 18 through 26 and in Annex B.2
20 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
21 [[Configurable]]: true } unless otherwise specified.
22 includes: [propertyHelper.js]
23 ---*/
24
25 assert.sameValue(typeof Atomics, "object", "no [[Call]]");
26 assert.throws(TypeError, function() {
27 new Atomics();
28 }, "no [[Construct]]");
29
30 verifyNotEnumerable(this, "Atomics");
31 verifyWritable(this, "Atomics");
32 verifyConfigurable(this, "Atomics");