From 66c08508ae6a2745a95a16633861ea61485be2fc Mon Sep 17 00:00:00 2001 From: Leonardo Balter Date: Fri, 26 Jun 2015 16:38:56 -0400 Subject: [PATCH] Map.prototype.constructor --- test/built-ins/Map/prototype/constructor.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/built-ins/Map/prototype/constructor.js diff --git a/test/built-ins/Map/prototype/constructor.js b/test/built-ins/Map/prototype/constructor.js new file mode 100644 index 0000000000..37eea8ba27 --- /dev/null +++ b/test/built-ins/Map/prototype/constructor.js @@ -0,0 +1,16 @@ +// 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.2 +description: Map.prototype.constructor value and descriptor +info: > + The initial value of Map.prototype.constructor is the intrinsic object %Map%. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Map.prototype.constructor, Map); +assert.sameValue((new Map()).constructor, Map); + +verifyNotEnumerable(Map.prototype, 'constructor'); +verifyWritable(Map.prototype, 'constructor'); +verifyConfigurable(Map.prototype, 'constructor');