length.js (736B)
1 // Copyright (C) 2020 Rick Waldron. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-iterator-constructor 6 description: > 7 Iterator has a "length" property whose value is 0. 8 info: | 9 The Iterator Constructor 10 11 The length property of the Iterator constructor function is 0. 12 ... 13 14 ES7 section 17: Unless otherwise specified, the length property of a built-in 15 Function object has the attributes { [[Writable]]: false, [[Enumerable]]: 16 false, [[Configurable]]: true }. 17 features: [iterator-helpers] 18 includes: [propertyHelper.js] 19 ---*/ 20 21 verifyProperty(Iterator, 'length', { 22 value: 0, 23 writable: false, 24 enumerable: false, 25 configurable: true, 26 }); 27 28 reportCompare(0, 0);