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

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

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