1// Copyright 2021 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-top-level-await --ignore-unhandled-promises 6 7try { 8 await import('./modules-skip-top-level-await-cycle-error.mjs'); 9 assertUnreachable(); 10} catch(e) { 11 assertEquals(e.message, 'Error in modules-skip-top-level-await-cycle-error-throwing.mjs'); 12} 13