Debian Codegraph @

js/src/tests/test262/language/module-code/top-level-await/module-import-resolution_FIXTURE.js

raw
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 await 1;
6 await 2;
7 export default await Promise.resolve(42);
8
9 export const y = await 39;
10 export const x = await 'named';
11
12 // Bonus: this rejection is not unwrapped
13 if (false) {
14 await Promise.reject(42);
15 }