summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Promise/promise-species.js
blob: 7e033b08b4434026fc2bc7e2f3946f4a18631597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (!this.Promise) {
    reportCompare(true,true);
    quit(0);
}

assertEq(Promise[Symbol.species], Promise);
let prop = Object.getOwnPropertyDescriptor(Promise, Symbol.species);
assertEq('get' in prop, true);
assertEq(typeof prop.get, 'function');
assertEq('set' in prop, true);
assertEq(prop.set, undefined);

reportCompare(0, 0, "ok");