tor-browser

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

S25.4.4.1_A2.3_T2.js (464B)


      1 // |reftest| async
      2 // Copyright 2014 Cubane Canada, Inc.  All rights reserved.
      3 // See LICENSE for details.
      4 
      5 /*---
      6 info: Promise.all is resolved with a new empty array
      7 es6id: 25.4.4.1_A2.3_T2
      8 author: Sam Mikes
      9 description: Promise.all([]) returns a Promise for an empty array
     10 flags: [async]
     11 ---*/
     12 
     13 var arg = [];
     14 
     15 Promise.all(arg).then(function(result) {
     16  assert.sameValue(result.length, 0, 'The value of result.length is expected to be 0');
     17 }).then($DONE, $DONE);