Map.prototype[Symbol.toStringTag]

This commit is contained in:
Leonardo Balter 2015-06-30 15:15:16 -04:00
parent 710fcbb383
commit 7d0c8638c6
1 changed files with 21 additions and 0 deletions

View File

@ -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);