diff options
Diffstat (limited to 'js/src/tests/test262/language/module-code/top-level-await/module-import-rejection_FIXTURE.js')
-rw-r--r-- | js/src/tests/test262/language/module-code/top-level-await/module-import-rejection_FIXTURE.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/module-code/top-level-await/module-import-rejection_FIXTURE.js b/js/src/tests/test262/language/module-code/top-level-await/module-import-rejection_FIXTURE.js new file mode 100644 index 0000000000..3a5d4d024e --- /dev/null +++ b/js/src/tests/test262/language/module-code/top-level-await/module-import-rejection_FIXTURE.js @@ -0,0 +1,12 @@ +// |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 const resolved = await 42; + +// Can't use Test262Error in this file because it's not referenced here +export default await Promise.reject(new TypeError('error in the default export line')); + +// Use RangeError to differentiate from initial error +export const x = await Promise.reject(new RangeError('named x rejection')); +export const y = await Promise.reject(new RangeError('named y rejection')); |