1// Copyright 2021 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// Flags: --harmony-top-level-await 6 7if (globalThis.test_order === undefined) { 8 globalThis.test_order = []; 9} 10globalThis.test_order.push('async before'); 11await 0; 12globalThis.test_order.push('async after'); 13