blob: 6de1027569d5fd1793d9fd28b92b715ce662b91b [file] [log] [blame]
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --ignore-unhandled-promises
(async function test() {
try {
import('does_not_exist.mjs');
assertUnreachable();
} catch {};
try {
await eval("import('does_not_exist.mjs')");
assertUnreachable();
} catch {};
try {
await Realm.eval(Realm.create(), "import('does_not_exist.mjs')");
assertUnreachable();
} catch {};
})();