summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/WeakRef/constructor.js
blob: babc1ba744d9c91cc3e6207c7b8c4a4986a5f9cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |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-weak-ref-constructor
description: >
  The WeakRef constructor is the %WeakRef% intrinsic object and the initial
  value of the WeakRef property of the global object.
features: [WeakRef]
---*/

assert.sameValue(
  typeof WeakRef, 'function',
  'typeof WeakRef is function'
);

reportCompare(0, 0);