2161e1852f
Closes #44653
17 lines
249 B
TypeScript
17 lines
249 B
TypeScript
//// [topLevelAwaitNonModule.ts]
|
|
await x;
|
|
|
|
const arr = [Promise.resolve()];
|
|
|
|
for await (const item of arr) {
|
|
item;
|
|
}
|
|
|
|
|
|
//// [topLevelAwaitNonModule.js]
|
|
await x;
|
|
const arr = [Promise.resolve()];
|
|
for await (const item of arr) {
|
|
item;
|
|
}
|