summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/top-level-await/module-import-rejection_FIXTURE.js
blob: 3a5d4d024e15d345ccec9e3b5266c886000d8641 (plain)
1
2
3
4
5
6
7
8
9
10
11
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'));