summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Promise/promise-species.js
blob: 52a4ecb63260eea49a008909c25ba5fab3301543 (plain)
1
2
3
4
5
6
7
8
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");