tor-browser

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

S11.4.1_A4.js (621B)


      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    "Delete" operator removes property, which is reference to the object, not
      7    the object
      8 esid: sec-delete-operator-runtime-semantics-evaluation
      9 description: Checking two reference by one object
     10 flags: [noStrict]
     11 ---*/
     12 
     13 //CHECK#1
     14 var obj = new Object();
     15 var ref = obj;
     16 delete ref;
     17 if (typeof obj !== 'object') {
     18  throw new Test262Error(
     19    '#1: obj = new Object(); ref = obj; delete ref; typeof obj === "object". Actual: ' +
     20    typeof obj
     21  );
     22 }
     23 
     24 reportCompare(0, 0);