generator-property-desc.js (518B)
1 // Copyright (C) 2015 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 description: > 6 Generator functions declared as methods are defined as enumerable, 7 writable, configurable properties on the initialized object. 8 es6id: 14.4.13 9 includes: [propertyHelper.js] 10 features: [generators] 11 ---*/ 12 13 var obj = { *method() {} }; 14 15 verifyProperty(obj, "method", { 16 writable: true, 17 enumerable: true, 18 configurable: true, 19 }); 20 21 reportCompare(0, 0);