tor-browser

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

S8.12.7_A1.js (1011B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: |
      6    When the [[Delete]] method of O is called with property name P,
      7    and If the property has the DontDelete attribute, return false
      8 esid: sec-delete-operator-runtime-semantics-evaluation
      9 description: Try to delete Math.E, that has the DontDelete attribute
     10 flags: [noStrict]
     11 ---*/
     12 
     13 //////////////////////////////////////////////////////////////////////////////
     14 //CHECK#1
     15 if (delete Math.E !== false) {
     16  throw new Test262Error('#1: delete Math.E === false. Actual: ' + delete Math.E);
     17 }
     18 //
     19 //////////////////////////////////////////////////////////////////////////////
     20 
     21 //////////////////////////////////////////////////////////////////////////////
     22 //CHECK#2
     23 if (Math.E === undefined) {
     24  throw new Test262Error('#2: delete Math.E; Math.E !== undefined');
     25 }
     26 //
     27 //////////////////////////////////////////////////////////////////////////////
     28 
     29 reportCompare(0, 0);