Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/encodeURIComponent/name.js

raw
1 // Copyright (C) 2015 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es6id: 18.2.6.5
6 esid: sec-encodeuricomponent-uricomponent
7 description: >
8 encodeURIComponent.name is "encodeURIComponent".
9 info: |
10 encodeURIComponent (uriComponent)
11
12 17 ECMAScript Standard Built-in Objects:
13 Every built-in Function object, including constructors, that is not
14 identified as an anonymous function has a name property whose value
15 is a String.
16
17 Unless otherwise specified, the name property of a built-in Function
18 object, if it exists, has the attributes { [[Writable]]: false,
19 [[Enumerable]]: false, [[Configurable]]: true }.
20 includes: [propertyHelper.js]
21 ---*/
22
23 assert.sameValue(encodeURIComponent.name, "encodeURIComponent");
24
25 verifyNotEnumerable(encodeURIComponent, "name");
26 verifyNotWritable(encodeURIComponent, "name");
27 verifyConfigurable(encodeURIComponent, "name");