From 206265e8fe456b732a24572d9b90a810d7f78880 Mon Sep 17 00:00:00 2001 From: Leonardo Balter <leonardo.balter@gmail.com> Date: Wed, 1 Jul 2015 15:33:21 -0400 Subject: [PATCH] WeakMap.prototype[Symbol.toStringTag] --- .../Symbol.toStringTag/property-descriptor.js | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/built-ins/WeakMap/prototype/Symbol.toStringTag/property-descriptor.js diff --git a/test/built-ins/WeakMap/prototype/Symbol.toStringTag/property-descriptor.js b/test/built-ins/WeakMap/prototype/Symbol.toStringTag/property-descriptor.js new file mode 100644 index 0000000000..ef26cc6af6 --- /dev/null +++ b/test/built-ins/WeakMap/prototype/Symbol.toStringTag/property-descriptor.js @@ -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); -- GitLab