tor-browser

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

boolean-trap-result-boolean-true.js (421B)


      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.10
      5 description: >
      6    [[Delete]] (P)
      7 
      8    The result is a Boolean value.
      9 features: [Proxy, Reflect]
     10 ---*/
     11 
     12 var p = new Proxy({}, {
     13  deleteProperty: function() {
     14    return 1;
     15  }
     16 });
     17 
     18 assert.sameValue(Reflect.deleteProperty(p, "attr"), true);
     19 
     20 reportCompare(0, 0);