mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
345 B
TypeScript
20 lines
345 B
TypeScript
//// [tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts] ////
|
|
|
|
//// [topLevelAwaitNonModule.ts]
|
|
await x;
|
|
|
|
const arr = [Promise.resolve()];
|
|
|
|
for await (const item of arr) {
|
|
item;
|
|
}
|
|
|
|
|
|
//// [topLevelAwaitNonModule.js]
|
|
"use strict";
|
|
await x;
|
|
const arr = [Promise.resolve()];
|
|
for await (const item of arr) {
|
|
item;
|
|
}
|