tor-browser

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

module-import-rejection_FIXTURE.js (566B)


      1 // |reftest| skip -- not a test file
      2 // Copyright (C) 2019 Leo Balter. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 export const resolved = await 42;
      6 
      7 // Can't use Test262Error in this file because it's not referenced here
      8 export default await Promise.reject(new TypeError('error in the default export line'));
      9 
     10 // Use RangeError to differentiate from initial error
     11 export const x = await Promise.reject(new RangeError('named x rejection'));
     12 export const y = await Promise.reject(new RangeError('named y rejection'));