summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/AsyncIterator/prototype/reduce/descriptor.js
blob: 6472c1a14d3c85dcc995453b35c503c15605a2cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) 
/*---
  Descriptor property of AsyncIterator.prototype.reduce
---*/

const propDesc = Reflect.getOwnPropertyDescriptor(AsyncIterator.prototype, 'reduce');
assertEq(typeof propDesc.value, 'function');
assertEq(propDesc.writable, true);
assertEq(propDesc.enumerable, false);
assertEq(propDesc.configurable, true);

if (typeof reportCompare === 'function')
  reportCompare(0, 0);