tor-browser

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

S25.4.4.1_A4.1_T1.js (443B)


      1 // Copyright 2014 Cubane Canada, Inc.  All rights reserved.
      2 // See LICENSE for details.
      3 
      4 /*---
      5 info: |
      6    Promise.all should throw if 'this' does not conform to Promise constructor
      7 es6id: S25.4.4.1_A4.1_T1
      8 description: this must conform to Promise constructor in Promise.all
      9 author: Sam Mikes
     10 ---*/
     11 
     12 function ZeroArgConstructor() {}
     13 
     14 assert.throws(TypeError, function() {
     15  Promise.all.call(ZeroArgConstructor, []);
     16 });
     17 
     18 reportCompare(0, 0);