node/deps/v8/test/mjsunit/harmony/modules-skip-async-subgraph-async.mjs
Guy Bedford f09c033faf
deps: backport v8 f19142e6
[top-level-await] Implement the new post-order requirement for
async subgraphs

Refs: f19142e613
PR-URL: https://github.com/nodejs/node/pull/37864
Backport-PR-URL: https://github.com/nodejs/node/pull/37985
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2021-03-30 20:40:45 -04:00

13 lines
376 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
if (globalThis.test_order === undefined) {
globalThis.test_order = [];
}
globalThis.test_order.push('async before');
await 0;
globalThis.test_order.push('async after');