tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

null-handler.js (511B)


      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 esid: sec-proxy-object-internal-methods-and-internal-slots-call-thisargument-argumentslist
      5 description: >
      6    [[Call]] (thisArgument, argumentsList)
      7 
      8    2. If handler is null, throw a TypeError exception.
      9 features: [Proxy]
     10 ---*/
     11 
     12 
     13 var p = Proxy.revocable(function() {}, {});
     14 
     15 p.revoke();
     16 
     17 assert.throws(TypeError, function() {
     18  p.proxy();
     19 });
     20 
     21 reportCompare(0, 0);