Debian Codegraph @

js/src/tests/test262/built-ins/WeakRef/constructor.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-weak-ref-constructor
7 description: >
8 The WeakRef constructor is the %WeakRef% intrinsic object and the initial
9 value of the WeakRef property of the global object.
10 features: [WeakRef]
11 ---*/
12
13 assert.sameValue(
14 typeof WeakRef, 'function',
15 'typeof WeakRef is function'
16 );
17
18 reportCompare(0, 0);