length.js (646B)
1 // Copyright (C) 2018 Valerie Young. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 esid: sec-asyncgeneratorfunction-length 5 description: > 6 This is a data property with a value of 1. This property has the attributes 7 { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. 8 includes: [propertyHelper.js] 9 features: [async-iteration] 10 ---*/ 11 12 var AsyncGeneratorFunction = Object.getPrototypeOf(async function* () {}).constructor; 13 14 verifyProperty(AsyncGeneratorFunction, "length", { 15 value: 1, 16 enumerable: false, 17 writable: false, 18 configurable: true, 19 }); 20 21 reportCompare(0, 0);