blob: 2cf5267be70412f5bf061d984ee581cf61245978 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// |reftest| skip-if(!this.hasOwnProperty('Iterator'))
/*---
esid: pending
description: %Iterator.prototype%.map value and descriptor.
info: >
17 ECMAScript Standard Built-in Objects
features: [iterator-helpers]
---*/
const map = Reflect.getOwnPropertyDescriptor(Iterator.prototype, 'map');
assertEq(
Iterator.prototype.map, map.value,
'The value of `%Iterator.prototype%.map` is the same as the value in the property descriptor.'
);
assertEq(
typeof map.value, 'function',
'%Iterator.prototype%.map is a function.'
);
assertEq(map.enumerable, false);
assertEq(map.writable, true);
assertEq(map.configurable, true);
if (typeof reportCompare == 'function')
reportCompare(0, 0);
|