2019-09-23 15:42:10 +00: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.
|
|
|
|
|
2020-06-23 14:45:51 +00:00
|
|
|
// Flags: --harmony-dynamic-import --harmony-top-level-await --ignore-unhandled-promises
|
2019-09-23 15:42:10 +00:00
|
|
|
|
|
|
|
let ran = false;
|
|
|
|
let m = import('modules-skip-2.mjs');
|
|
|
|
await m.then(
|
|
|
|
() => {
|
|
|
|
assertUnreachable();
|
|
|
|
},
|
|
|
|
(e) => {
|
|
|
|
assertEquals(e.message, '42 is not the answer');
|
|
|
|
ran = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
assertEquals(ran, true);
|