tor-browser

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

trap-is-undefined.js (397B)


      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.4
      5 description: >
      6    Return target.[[PreventExtensions]]() if target is undefined.
      7 features: [Proxy, Reflect]
      8 ---*/
      9 
     10 var target = {};
     11 var p = new Proxy(target, {});
     12 
     13 assert.sameValue(Reflect.preventExtensions(p), true);
     14 
     15 reportCompare(0, 0);