name.js (584B)
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: Assignment of function `name` attribute 6 es6id: 14.4.12 7 info: | 8 GeneratorDeclaration : 9 function * BindingIdentifier ( FormalParameters ) { GeneratorBody } 10 11 [...] 12 6. Perform SetFunctionName(F, name). 13 includes: [propertyHelper.js] 14 features: [generators] 15 ---*/ 16 17 function* g() {} 18 19 verifyProperty(g, "name", { 20 value: "g", 21 writable: false, 22 enumerable: false, 23 configurable: true, 24 }); 25 26 reportCompare(0, 0);