2019-11-08 15:39:11 +01:00
|
|
|
// Copyright 2019 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.
|
|
|
|
|
2025-04-29 08:03:15 +02:00
|
|
|
// Flags: --ignore-unhandled-promises
|
2019-11-08 15:39:11 +01:00
|
|
|
|
|
|
|
let ran = false;
|
|
|
|
try {
|
|
|
|
await import('modules-skip-2.mjs');
|
|
|
|
assertUnreachable();
|
|
|
|
} catch (e) {
|
|
|
|
assertEquals(e.message, '42 is not the answer');
|
|
|
|
ran = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
assertEquals(ran, true);
|