blob: 4818f0f109f7f2d1633a6b4df78f18e0dc400bea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Assignment of function `name` attribute
es6id: 14.4.12
info: |
GeneratorDeclaration :
function * BindingIdentifier ( FormalParameters ) { GeneratorBody }
[...]
6. Perform SetFunctionName(F, name).
includes: [propertyHelper.js]
features: [generators]
---*/
function* g() {}
assert.sameValue(g.name, 'g');
verifyNotEnumerable(g, 'name');
verifyNotWritable(g, 'name');
verifyConfigurable(g, 'name');
reportCompare(0, 0);
|