1 // |reftest| skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
2 // Copyright (C) 2016 The V8 Project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-atomics-object
8 Property descriptor of Atomics
13 The Atomics object does not have a [[Construct]] internal method;
14 it is not possible to use the Atomics object as a constructor with the new operator.
16 The Atomics object does not have a [[Call]] internal method;
17 it is not possible to invoke the Atomics object as a function.
19 17 ECMAScript Standard Built-in Objects:
21 Every other data property described in clauses 18 through 26 and in Annex B.2
22 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
23 [[Configurable]]: true } unless otherwise specified.
24 includes: [propertyHelper.js]
28 assert.sameValue(typeof Atomics, "object", 'The value of `typeof Atomics` is "object"');
30 assert.throws(TypeError, function() {
34 assert.throws(TypeError, function() {
38 verifyProperty(this, "Atomics", {