test262/test/built-ins/Promise/symbol-species.js
C. Scott Ananian bae004d531 Remove unnecessary ES2015 syntax; add feature flags where appropriate.
This allows these tests to be more easily reused to test Promise
implementations in isolation.
2015-12-03 17:34:17 -05:00

20 lines
541 B
JavaScript

// 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);