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

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

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