tor-browser

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

11.4.1-2-2.js (508B)


      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    delete operator returns true when deleting returned value from a
      8    function
      9 ---*/
     10 
     11 var bIsFooCalled = false;
     12 var foo = function() {
     13  bIsFooCalled = true;
     14 };
     15 
     16 var d = delete foo();
     17 
     18 assert.sameValue(d, true, 'd');
     19 assert.sameValue(bIsFooCalled, true, 'bIsFooCalled');
     20 
     21 reportCompare(0, 0);