tor-browser

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

null-handler-using-with.js (413B)


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