blob: 7c4964e696df9f29b26c3b6d9bca3eed49d3bb2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally
/*---
`name` property of Iterator.prototype.forEach.
---*/
const propDesc = Reflect.getOwnPropertyDescriptor(Iterator.prototype.forEach, 'name');
assertEq(propDesc.value, 'forEach');
assertEq(propDesc.writable, false);
assertEq(propDesc.enumerable, false);
assertEq(propDesc.configurable, true);
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|