tor-browser

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

S11.4.1_A3.3_T3.js (714B)


      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: If the property doesn't have the DontDelete attribute, remove the property
      6 esid: sec-delete-operator-runtime-semantics-evaluation
      7 description: Checking declared variable
      8 ---*/
      9 
     10 //CHECK#1
     11 function MyFunction() {}
     12 var MyObjectVar = new MyFunction();
     13 MyObjectVar.prop = 1;
     14 delete MyObjectVar.prop;
     15 if (MyObjectVar.prop !== undefined) {
     16  throw new Test262Error(
     17    '#1: function MyFunction(){}; var MyObjectVar = new MyFunction(); MyFunction.prop = 1; delete MyObjectVar.prop; MyObjectVar.prop === undefined. Actual: ' +
     18    MyObjectVar.prop
     19  );
     20 }
     21 
     22 reportCompare(0, 0);