test262/test/language/module-code/top-level-await/module-import-rejection-tick_FIXTURE.js
2019-09-26 14:28:56 -04:00

13 lines
368 B
JavaScript

// Copyright (C) 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
export default 42;
await Promise.resolve().then(() => {
// This rejection will tick first unwrapping all the promises first
return Promise.reject(new RangeError());
});
var rejection = Promise.reject(new TypeError());
await rejection;