Debian Codegraph @

js/src/tests/test262/built-ins/Atomics/proto.js

raw
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.
4
5 /*---
6 esid: sec-atomics-object
7 description: >
8 The prototype of Atomics is Object.prototype
9 info: |
10 The Atomics Object
11
12 The value of the [[Prototype]] internal slot of the Atomics object is the
13 intrinsic object %ObjectPrototype%.
14 features: [Atomics]
15 ---*/
16
17 assert.sameValue(
18 Object.getPrototypeOf(Atomics),
19 Object.prototype,
20 'Object.getPrototypeOf(Atomics) returns the value of `Object.prototype`'
21 );
22
23 reportCompare(0, 0);