Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/method-definition/generator-name-prop-string.js

raw
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 assigned a `name` property
7 according to the string value of their property name.
8 es6id: 14.4.13
9 includes: [propertyHelper.js]
10 features: [generators]
11 ---*/
12
13 var method = { *method() {} }.method;
14
15 assert.sameValue(method.name, 'method');
16 verifyNotEnumerable(method, 'name');
17 verifyNotWritable(method, 'name');
18 verifyConfigurable(method, 'name');