tor-browser

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

S10.4.1_A1_T2.js (642B)


      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    Variable instantiation is performed using the global object as
      7    the variable object and using property attributes { DontDelete }
      8 es5id: 10.4.1_A1_T2
      9 description: Checking if deleting variable x, that is defined as x = 1, fails
     10 flags: [noStrict]
     11 ---*/
     12 
     13 x = 1;
     14 
     15 if (this.x !== 1) {
     16  throw new Test262Error("#1: variable x is a property of global object");
     17 }
     18 
     19 if(delete this.x !== true){
     20  throw new Test262Error("#2: variable x has property attribute DontDelete");
     21 }
     22 
     23 reportCompare(0, 0);