Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / WeakSet / properties-of-the-weakset-prototype-object.js
blob26f93b89c0a28beb19f813d36322fea34ad8ad4c
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-properties-of-the-weakset-prototype-object
5 description: >
6   The WeakSet.prototype's prototype is Object.prototype.
7 info: |
8   23.4.3 Properties of the WeakSet Prototype Object
10   The WeakSet prototype object is the intrinsic object %WeakSetPrototype%. The
11   value of the [[Prototype]] internal slot of the WeakSet prototype object is
12   the intrinsic object %ObjectPrototype% (19.1.3). The WeakSet prototype
13   object is an ordinary object. It does not have a [[WeakSetData]] internal
14   slot.
15 ---*/
17 assert.sameValue(
18   Object.getPrototypeOf(WeakSet.prototype),
19   Object.prototype,
20   '`Object.getPrototypeOf(WeakSet.prototype)` returns `Object.prototype`'
23 reportCompare(0, 0);