summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Promise/Symbol.species/symbol-species-name.js
blob: 30f74b923b1ae800fa3539d90ed9d25c25946d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 25.4.4.6
description: >
  Promise[Symbol.species] accessor property get name
info: |
  25.4.4.6 get Promise [ @@species ]

  ...
  The value of the name property of this function is "get [Symbol.species]".
features: [Symbol.species]
---*/

var descriptor = Object.getOwnPropertyDescriptor(Promise, Symbol.species);

assert.sameValue(
  descriptor.get.name,
  'get [Symbol.species]'
);

reportCompare(0, 0);