tor-browser

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

delete-properties.js (460B)


      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.1.4
      5 description: >
      6  Delete property.
      7 info: |
      8  26.1.4 Reflect.deleteProperty ( target, propertyKey )
      9 
     10  ...
     11  4. Return target.[[Delete]](key).
     12 features: [Reflect]
     13 ---*/
     14 
     15 var o = {
     16  prop: 42
     17 };
     18 
     19 Reflect.deleteProperty(o, 'prop');
     20 
     21 assert.sameValue(o.hasOwnProperty('prop'), false);
     22 
     23 reportCompare(0, 0);