Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Proxy/revocable/revocation-function-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: 26.2.2.1.1
6 description: The `name` property of Proxy Revocation functions
7 info: |
8 A Proxy revocation function is an anonymous function.
9
10 17 ECMAScript Standard Built-in Objects:
11 Every built-in Function object, including constructors, that is not
12 identified as an anonymous function has a name property whose value
13 is a String.
14 ---*/
15
16 var revocationFunction = Proxy.revocable({}, {}).revoke;
17
18 assert.sameValue(Object.prototype.hasOwnProperty.call(revocationFunction, "name"), false);