From 7d0c8638c67222d52bb922be938208f924d68644 Mon Sep 17 00:00:00 2001 From: Leonardo Balter Date: Tue, 30 Jun 2015 15:15:16 -0400 Subject: [PATCH] Map.prototype[Symbol.toStringTag] --- .../Symbol.toStringTag/property-descriptor.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/built-ins/Map/prototype/Symbol.toStringTag/property-descriptor.js diff --git a/test/built-ins/Map/prototype/Symbol.toStringTag/property-descriptor.js b/test/built-ins/Map/prototype/Symbol.toStringTag/property-descriptor.js new file mode 100644 index 0000000000..efc2514cf9 --- /dev/null +++ b/test/built-ins/Map/prototype/Symbol.toStringTag/property-descriptor.js @@ -0,0 +1,21 @@ +// 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.1.3.13 +description: > + Map.prototype[ @@toStringTag ] value and descriptor. +includes: [propertyHelper.js] +features: [Symbol.toStringTag] + ---*/ + +var MapProto = Object.getPrototypeOf(new Map()); + +assert.sameValue( + MapProto[Symbol.toStringTag], + 'Map', + 'The value of MapProto[Symbol.toStringTag] is Map' +); + +verifyNotEnumerable(MapProto, Symbol.toStringTag); +verifyNotWritable(MapProto, Symbol.toStringTag); +verifyConfigurable(MapProto, Symbol.toStringTag);