blob: c13c0c58ac7a7030d58eff4d6956079df68b2e59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// 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-get-map.prototype.size
description: >
Property type and descriptor.
info: |
get Map.prototype.size
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
---*/
var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size');
assert.sameValue(
typeof descriptor.get,
'function',
'typeof descriptor.get is function'
);
assert.sameValue(
typeof descriptor.set,
'undefined',
'typeof descriptor.set is undefined'
);
verifyNotEnumerable(Map.prototype, 'size');
verifyConfigurable(Map.prototype, 'size');
reportCompare(0, 0);
|