summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/AsyncIterator/prototype/find/name.js
blob: 21e8fa90f89c0dbd4ec1201a73bcce903816cced (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.find.
---*/

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

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