mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 12:25:12 +00:00

[top-level-await] Implement the new post-order requirement for
async subgraphs
Refs: f19142e613
PR-URL: https://github.com/nodejs/node/pull/37864
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
12 lines
351 B
JavaScript
12 lines
351 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
|
|
|
|
import "modules-skip-async-subgraph-start.mjs"
|
|
|
|
assertEquals(globalThis.test_order, [
|
|
'async before', 'async after', '1', '2', 'x', 'start'
|
|
]);
|