mirror of https://github.com/tc39/test262.git
23 lines
578 B
JavaScript
23 lines
578 B
JavaScript
// 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');
|