blob: 2f793f7cf3ef9107e004e8356422b35853777d50 (
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
32
33
34
35
36
37
38
39
40
41
|
// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-symbol.prototype.description
description: >
Test the descriptor of Symbol.prototype.description.
info: |
`Symbol.prototype.description` is an accessor property whose
set accessor function is undefined.
includes: [propertyHelper.js]
features: [Symbol.prototype.description]
---*/
var desc = Object.getOwnPropertyDescriptor(Symbol.prototype, 'description');
assert.sameValue(
desc.set,
undefined,
'The value of desc.set is `undefined`'
);
assert.sameValue(
desc.writable,
undefined,
'The value of desc.writable is `undefined`'
);
assert.sameValue(
typeof desc.get,
'function',
'The value of `typeof desc.get` is "function"'
);
verifyProperty(Symbol.prototype, 'description', {
enumerable: false,
configurable: true,
});
reportCompare(0, 0);
|