Debian Codegraph @

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

raw
1 // |reftest| skip-if(!this.hasOwnProperty('WeakRef')) -- WeakRef is not enabled unconditionally
2 // Copyright (C) 2019 Leo Balter. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-properties-of-the-weak-ref-constructor
7 description: >
8 The prototype of WeakRef is Object.prototype
9 info: |
10 The value of the [[Prototype]] internal slot of the WeakRef object is the
11 intrinsic object %FunctionPrototype%.
12 features: [WeakRef]
13 ---*/
14
15 assert.sameValue(
16 Object.getPrototypeOf(WeakRef),
17 Function.prototype,
18 'Object.getPrototypeOf(WeakRef) returns the value of `Function.prototype`'
19 );
20
21 reportCompare(0, 0);