summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Iterator/prototype/reduce/name.js
blob: 1269bb4b5287c401122abd1feb558d04a68cb326 (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.reduce.
---*/

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

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