revoke.js (483B)
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 features: [Proxy] 12 ---*/ 13 14 var r = Proxy.revocable({}, {}); 15 16 assert.sameValue(typeof r.revoke, "function"); 17 18 reportCompare(0, 0);