tor-browser

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

11.4.1-4-a-3-s.js (512B)


      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 data property
      8 ---*/
      9 
     10 var obj = {};
     11 Object.defineProperty(obj, 'prop', {
     12  value: 'abc',
     13  configurable: true,
     14 });
     15 
     16 delete obj.prop;
     17 
     18 assert.sameValue(
     19  obj.hasOwnProperty('prop'),
     20  false,
     21  'obj.hasOwnProperty("prop")'
     22 );
     23 
     24 reportCompare(0, 0);