2020-06-16 16:09:01 +00:00
|
|
|
// 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.
|
|
|
|
|
2020-06-23 14:45:51 +00:00
|
|
|
// Flags: --ignore-unhandled-promises
|
|
|
|
|
2020-06-16 16:09:01 +00:00
|
|
|
(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 {};
|
|
|
|
})();
|