blob: 5926763343814a886f301fd6eeab54e96e737e64 (
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
|
// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-set.prototype-@@tostringtag
description: >
`Object.prototype.getOwnPropertyDescriptor` should reflect the value and
writability of the @@toStringTag attribute.
includes: [propertyHelper.js]
features: [Symbol.toStringTag]
---*/
var SetProto = Object.getPrototypeOf(new Set());
assert.sameValue(
SetProto[Symbol.toStringTag],
'Set',
"The value of `SetProto[Symbol.toStringTag]` is `'Set'`"
);
verifyNotEnumerable(SetProto, Symbol.toStringTag);
verifyNotWritable(SetProto, Symbol.toStringTag);
verifyConfigurable(SetProto, Symbol.toStringTag);
reportCompare(0, 0);
|