summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/WeakSet/properties-of-the-weakset-prototype-object.js
blob: 26f93b89c0a28beb19f813d36322fea34ad8ad4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-properties-of-the-weakset-prototype-object
description: >
  The WeakSet.prototype's prototype is Object.prototype.
info: |
  23.4.3 Properties of the WeakSet Prototype Object

  The WeakSet prototype object is the intrinsic object %WeakSetPrototype%. The
  value of the [[Prototype]] internal slot of the WeakSet prototype object is
  the intrinsic object %ObjectPrototype% (19.1.3). The WeakSet prototype
  object is an ordinary object. It does not have a [[WeakSetData]] internal
  slot.
---*/

assert.sameValue(
  Object.getPrototypeOf(WeakSet.prototype),
  Object.prototype,
  '`Object.getPrototypeOf(WeakSet.prototype)` returns `Object.prototype`'
);

reportCompare(0, 0);