summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/AsyncIterator/asynciterator.js
blob: 048c3b439200a9d8743116123c3342244b8e3285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) -- AsyncIterator is not enabled unconditionally
/*---
  Property descriptor of AsyncIterator.
---*/

const propDesc = Reflect.getOwnPropertyDescriptor(this, 'AsyncIterator');
assertEq(propDesc.value, AsyncIterator);
assertEq(propDesc.writable, true);
assertEq(propDesc.enumerable, false);
assertEq(propDesc.configurable, true);

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