Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/decodeURIComponent/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.3
6 esid: sec-decodeuricomponent-encodeduricomponent
7 description: >
8 decodeURIComponent.name is "decodeURIComponent".
9 info: |
10 decodeURIComponent (encodedURIComponent)
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(decodeURIComponent.name, "decodeURIComponent");
24
25 verifyNotEnumerable(decodeURIComponent, "name");
26 verifyNotWritable(decodeURIComponent, "name");
27 verifyConfigurable(decodeURIComponent, "name");