summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/Symbol.species/symbol-species.js
blob: 634e7db4f2f4fa624be7f39747626369e9dd5c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2015 Cubane Canada, Inc.  All rights reserved.
// See LICENSE for details.

/*---
info: >
 Promise has a property at `Symbol.species`
es6id: 6.1.5.1
author: Sam Mikes
description: Promise[Symbol.species] exists per spec
includes:
  - propertyHelper.js
features: [Symbol.species]
---*/

assert.sameValue(Promise[Symbol.species], Promise, "Promise[Symbol.species] is Promise");

verifyNotWritable(Promise, Symbol.species, Symbol.species);
verifyNotEnumerable(Promise, Symbol.species);
verifyConfigurable(Promise, Symbol.species);