tor-browser

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

11.4.1-4.a-17.js (635B)


      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 info: |
      6    This test is actually testing the [[Delete]] internal method (8.12.8). Since the
      7    language provides no way to directly exercise [[Delete]], the tests are placed here.
      8 esid: sec-delete-operator-runtime-semantics-evaluation
      9 description: delete operator returns true on deleting a arguments element
     10 ---*/
     11 
     12 function foo(a, b) {
     13  var d = delete arguments[0];
     14  return d === true && arguments[0] === undefined;
     15 }
     16 
     17 assert.sameValue(foo(1, 2), true, 'foo(1,2)');
     18 
     19 reportCompare(0, 0);