v8/test/mjsunit/harmony/modules-top-level-await-cycle-error.mjs
Camillo Bruni 7698e9befe [modules] Fix AsyncModuleExecutionFulfilled with pending error
This is a partial fix to mitigate immediate issues. The code needs some
overhaul to match the recent spec changes.

Drive-by-fix: Partially update comments to match spec

Bug: v8:11949
Change-Id: I6b03d38c758176e29e8951af21c43d030bbb684d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3075360
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#76172}
2021-08-09 15:15:03 +00:00

13 lines
435 B
JavaScript

// Copyright 2021 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:--harmony-top-level-await --ignore-unhandled-promises
try {
await import('./modules-skip-top-level-await-cycle-error.mjs');
assertUnreachable();
} catch(e) {
assertEquals(e.message, 'Error in modules-skip-top-level-await-cycle-error-throwing.mjs');
}