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: --allow-natives-syntax --harmony-dynamic-import --harmony-top-level-await
6
7let promise_resolved = false;
8let m = import('modules-skip-1.mjs');
9m.then(
10  () => { promise_resolved = true; },
11  () => { %AbortJS('Promise rejected'); });
12await m;
13
14assertEquals(promise_resolved, true);
15