summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/WeakRef/proto.js
blob: 53861ad98ddf20fb6ab86b9548e2e6e81bad1034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |reftest| skip-if(!this.hasOwnProperty('WeakRef')) -- WeakRef is not enabled unconditionally
// Copyright (C) 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-properties-of-the-weak-ref-constructor
description: >
  The prototype of WeakRef is Object.prototype
info: |
  The value of the [[Prototype]] internal slot of the WeakRef object is the
  intrinsic object %FunctionPrototype%.
features: [WeakRef]
---*/

assert.sameValue(
  Object.getPrototypeOf(WeakRef),
  Function.prototype,
  'Object.getPrototypeOf(WeakRef) returns the value of `Function.prototype`'
);

reportCompare(0, 0);