2017-02-07 17:17:31 +01:00
|
|
|
// Copyright (C) 2016 The V8 Project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
2017-07-26 23:49:55 +02:00
|
|
|
esid: sec-atomics-object
|
2017-02-07 17:17:31 +01:00
|
|
|
description: >
|
|
|
|
Property descriptor of Atomics
|
|
|
|
info: |
|
|
|
|
The Atomics Object
|
|
|
|
|
2018-04-19 17:23:17 +02:00
|
|
|
...
|
|
|
|
The Atomics object does not have a [[Construct]] internal method;
|
|
|
|
it is not possible to use the Atomics object as a constructor with the new operator.
|
|
|
|
|
|
|
|
The Atomics object does not have a [[Call]] internal method;
|
|
|
|
it is not possible to invoke the Atomics object as a function.
|
2017-02-07 17:17:31 +01:00
|
|
|
|
|
|
|
17 ECMAScript Standard Built-in Objects:
|
|
|
|
|
|
|
|
Every other data property described in clauses 18 through 26 and in Annex B.2
|
|
|
|
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
|
|
|
[[Configurable]]: true } unless otherwise specified.
|
|
|
|
includes: [propertyHelper.js]
|
2018-03-20 00:51:32 +01:00
|
|
|
features: [Atomics]
|
2017-02-07 17:17:31 +01:00
|
|
|
---*/
|
|
|
|
|
2018-06-27 18:58:02 +02:00
|
|
|
assert.sameValue(typeof Atomics, "object", 'The value of `typeof Atomics` is "object"');
|
2018-04-19 17:23:17 +02:00
|
|
|
|
|
|
|
assert.throws(TypeError, function() {
|
|
|
|
Atomics();
|
2024-03-23 02:28:44 +01:00
|
|
|
});
|
2018-04-19 17:23:17 +02:00
|
|
|
|
2017-02-07 17:17:31 +01:00
|
|
|
assert.throws(TypeError, function() {
|
|
|
|
new Atomics();
|
2024-03-23 02:28:44 +01:00
|
|
|
});
|
2017-02-07 17:17:31 +01:00
|
|
|
|
2018-04-19 17:23:17 +02:00
|
|
|
verifyProperty(this, "Atomics", {
|
|
|
|
enumerable: false,
|
|
|
|
writable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|