tor-browser

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

regress-315509-01.js (746B)


      1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 //-----------------------------------------------------------------------------
      7 var BUGNUMBER = 315509;
      8 var summary = 'Array.prototype.unshift on Arrays with holes';
      9 var actual = '';
     10 var expect = '';
     11 
     12 printBugNumber(BUGNUMBER);
     13 printStatus (summary);
     14 
     15 var a = [0,1,2,3,4];
     16 delete a[1];
     17 
     18 expect = '0,,2,3,4';
     19 actual = a.toString();
     20 
     21 reportCompare(expect, actual, summary);
     22 
     23 a.unshift('a','b');
     24 
     25 expect = 'a,b,0,,2,3,4';
     26 actual = a.toString();
     27 
     28 reportCompare(expect, actual, summary);