module-import-rejection-tick_FIXTURE.js (405B)
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 default 42; 6 7 await Promise.resolve().then(() => { 8 // This rejection will tick first unwrapping all the promises first 9 return Promise.reject(new RangeError()); 10 }); 11 12 var rejection = Promise.reject(new TypeError()); 13 await rejection;