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: --allow-natives-syntax
|
2019-11-08 15:39:11 +01:00
|
|
|
|
|
|
|
let promise_resolved = false;
|
|
|
|
let m = import('modules-skip-1.mjs');
|
|
|
|
m.then(
|
|
|
|
() => { promise_resolved = true; },
|
|
|
|
() => { %AbortJS('Promise rejected'); });
|
|
|
|
await m;
|
|
|
|
|
|
|
|
assertEquals(promise_resolved, true);
|