diff options
Diffstat (limited to 'js/src/tests/test262/language/module-code/top-level-await/module-import-rejection-tick_FIXTURE.js')
-rw-r--r-- | js/src/tests/test262/language/module-code/top-level-await/module-import-rejection-tick_FIXTURE.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/module-code/top-level-await/module-import-rejection-tick_FIXTURE.js b/js/src/tests/test262/language/module-code/top-level-await/module-import-rejection-tick_FIXTURE.js new file mode 100644 index 0000000000..4fedc13aa4 --- /dev/null +++ b/js/src/tests/test262/language/module-code/top-level-await/module-import-rejection-tick_FIXTURE.js @@ -0,0 +1,13 @@ +// |reftest| skip -- not a test file +// 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; |