blob: 6d126390fb4f8089de77520d336aeaa1d71a4a6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator'))
/*---
esid: pending
description: %AsyncIterator.prototype%.take.name value and descriptor.
info: >
17 ECMAScript Standard Built-in Objects
features: [iterator-helpers]
---*/
assertEq(AsyncIterator.prototype.take.name, 'take');
const propertyDescriptor = Reflect.getOwnPropertyDescriptor(AsyncIterator.prototype.take, 'name');
assertEq(propertyDescriptor.value, 'take');
assertEq(propertyDescriptor.enumerable, false);
assertEq(propertyDescriptor.writable, false);
assertEq(propertyDescriptor.configurable, true);
if (typeof reportCompare == 'function')
reportCompare(0, 0);
|