Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/method-definition/name-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 Functions declared as methods are assigned a `name` property according to
7 the string value of their property name.
8 es6id: 14.3.8
9 includes: [propertyHelper.js]
10 ---*/
11
12 var method = { method() {} }.method;
13
14 assert.sameValue(method.name, 'method');
15 verifyNotEnumerable(method, 'name');
16 verifyNotWritable(method, 'name');
17 verifyConfigurable(method, 'name');