summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Iterator/name.js
blob: c11e5702285e186c3a156718282c245ffe3fc8be (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
/*---
  The "name" property of Iterator
---*/

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

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