tor-browser

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

ctx-non-ctor.js (352B)


      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 errors when the receiver is not a constructor
      6 esid: sec-promise.try
      7 features: [promise-try]
      8 ---*/
      9 
     10 assert.throws(TypeError, function () {
     11  Promise.try.call(eval);
     12 });
     13 
     14 reportCompare(0, 0);