Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Proxy/revocable/revoke.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 es6id: 26.2.2.1
5 description: >
6 The returned object has a `revoked` property which is a function
7 info: |
8 Proxy.revocable ( target, handler )
9
10 7. Perform CreateDataProperty(result, "revoke", revoker).
11 ---*/
12
13 var r = Proxy.revocable({}, {});
14
15 assert.sameValue(typeof r.revoke, "function");