tor-browser

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

proxy-newtarget.js (660B)


      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.1.1
      5 description: >
      6    Proxy ( target, handler )
      7 
      8    When Proxy is called with arguments target and handler performs
      9    the following steps:
     10 
     11    ...
     12    2. Return ProxyCreate(target, handler). (9.5.15)
     13    ...
     14        9.5.15 ProxyCreate(target, handler)
     15        ...
     16        5. Let P be a newly created object.
     17        ...
     18        10. Return P.
     19 
     20 features: [Proxy]
     21 ---*/
     22 
     23 var p1 = new Proxy({}, {});
     24 
     25 assert.sameValue(
     26  typeof p1,
     27  'object',
     28  'Return a newly created Object'
     29 );
     30 
     31 reportCompare(0, 0);