| 1 |
// Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
/*--- |
| 4 |
es6id: 25.4.4.5 |
| 5 |
description: Promise.resolve `name` property |
| 6 |
info: | |
| 7 |
ES6 Section 17: |
| 8 |
|
| 9 |
Every built-in Function object, including constructors, that is not |
| 10 |
identified as an anonymous function has a name property whose value is a |
| 11 |
String. Unless otherwise specified, this value is the name that is given to |
| 12 |
the function in this specification. |
| 13 |
|
| 14 |
[...] |
| 15 |
|
| 16 |
Unless otherwise specified, the name property of a built-in Function |
| 17 |
object, if it exists, has the attributes { [[Writable]]: false, |
| 18 |
[[Enumerable]]: false, [[Configurable]]: true }. |
| 19 |
includes: [propertyHelper.js] |
| 20 |
---*/ |
| 21 |
|
| 22 |
assert.sameValue(Promise.resolve.name, 'resolve'); |
| 23 |
|
| 24 |
verifyNotEnumerable(Promise.resolve, 'name'); |
| 25 |
verifyNotWritable(Promise.resolve, 'name'); |
| 26 |
verifyConfigurable(Promise.resolve, 'name'); |