v8/test/mjsunit/regress/regress-v8-10604.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
533 B
JavaScript
Raw Normal View History

// 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 {};
})();