tor-browser

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

11.4.1-4-a-4-s.js (543B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-delete-operator-runtime-semantics-evaluation
      6 description: >
      7    TypeError isn't thrown when deleting configurable accessor property
      8 ---*/
      9 
     10 var obj = {};
     11 Object.defineProperty(obj, 'prop', {
     12  get: function() {
     13    return 'abc';
     14  },
     15  configurable: true,
     16 });
     17 
     18 delete obj.prop;
     19 
     20 assert.sameValue(
     21  obj.hasOwnProperty('prop'),
     22  false,
     23  'obj.hasOwnProperty("prop")'
     24 );
     25 
     26 reportCompare(0, 0);