null-handler.js (405B)
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: 9.5.5 5 description: > 6 Throws a TypeError exception if handler is null. 7 features: [Proxy] 8 ---*/ 9 10 var p = Proxy.revocable({}, {}); 11 12 p.revoke(); 13 14 assert.throws(TypeError, function() { 15 Object.getOwnPropertyDescriptor(p.proxy); 16 }); 17 18 reportCompare(0, 0);