summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/WeakMap/length.js
blob: e5bf7043e3b93ca60f80be62a56fdf3afd458bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-properties-of-the-weakmap-constructor
description: >
  The length property of the WeakMap constructor is 0.
includes: [propertyHelper.js]
---*/

assert.sameValue(WeakMap.length, 0, 'The value of `WeakMap.length` is `0`');

verifyNotEnumerable(WeakMap, 'length');
verifyNotWritable(WeakMap, 'length');
verifyConfigurable(WeakMap, 'length');

reportCompare(0, 0);