tor-browser

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

promise.js (388B)


      1 // Copyright (C) 2024 Jordan Harband. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: Promise.try return value is a Promise
      6 features: [promise-try]
      7 ---*/
      8 
      9 var instance = Promise.try(function () {});
     10 
     11 assert.sameValue(instance.constructor, Promise);
     12 assert.sameValue(instance instanceof Promise, true);
     13 
     14 reportCompare(0, 0);