1// Copyright 2019 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --harmony-dynamic-import --harmony-top-level-await --ignore-unhandled-promises
6
7let ran = false;
8try {
9  await import('modules-skip-4-top-level-await.mjs');
10  assertUnreachable();
11} catch (e) {
12  assertEquals(e.message, '42 is not the answer');
13  ran = true;
14}
15
16assertEquals(ran, true);
17