mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 08:24:23 +02:00
Map.prototype.constructor
This commit is contained in:
parent
b1557df8ef
commit
66c08508ae
16
test/built-ins/Map/prototype/constructor.js
vendored
Normal file
16
test/built-ins/Map/prototype/constructor.js
vendored
Normal file
@ -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');
|
Loading…
x
Reference in New Issue
Block a user