mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
WeakMap.prototype[Symbol.toStringTag]
This commit is contained in:
parent
74665f0558
commit
206265e8fe
26
test/built-ins/WeakMap/prototype/Symbol.toStringTag/property-descriptor.js
vendored
Normal file
26
test/built-ins/WeakMap/prototype/Symbol.toStringTag/property-descriptor.js
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
es6id: 23.3.3.6
|
||||||
|
description: "WeakMap#@@toStringTag value and writability"
|
||||||
|
info: >
|
||||||
|
WeakMap.prototype [ @@toStringTag ]
|
||||||
|
|
||||||
|
The initial value of the @@toStringTag property is the String value "WeakMap".
|
||||||
|
|
||||||
|
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
|
includes: [propertyHelper.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
var WeakMapProto = WeakMap.prototype;
|
||||||
|
|
||||||
|
assert.sameValue(
|
||||||
|
WeakMapProto[Symbol.toStringTag],
|
||||||
|
'WeakMap',
|
||||||
|
'The value of WeakMap.prototype[Symbol.toStringTag] is "WeakMap"'
|
||||||
|
);
|
||||||
|
|
||||||
|
verifyNotEnumerable(WeakMapProto, Symbol.toStringTag);
|
||||||
|
verifyNotWritable(WeakMapProto, Symbol.toStringTag);
|
||||||
|
verifyConfigurable(WeakMapProto, Symbol.toStringTag);
|
Loading…
x
Reference in New Issue
Block a user