summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/AsyncIterator/prototype/every/descriptor.js
blob: 180085cefe74c712d1cdde89ab8c5887d1b90952 (plain)
1
2
3
4
5
6
7
8
9
10
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator'))

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

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