mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
526 B
Plaintext
25 lines
526 B
Plaintext
//// [tests/cases/conformance/node/nodeModulesTopLevelAwait.ts] ////
|
|
|
|
=== subfolder/index.ts ===
|
|
// cjs format file
|
|
const x = await 1;
|
|
>x : Symbol(x, Decl(index.ts, 1, 5))
|
|
|
|
export {x};
|
|
>x : Symbol(x, Decl(index.ts, 2, 8))
|
|
|
|
for await (const y of []) {}
|
|
>y : Symbol(y, Decl(index.ts, 3, 16))
|
|
|
|
=== index.ts ===
|
|
// esm format file
|
|
const x = await 1;
|
|
>x : Symbol(x, Decl(index.ts, 1, 5))
|
|
|
|
export {x};
|
|
>x : Symbol(x, Decl(index.ts, 2, 8))
|
|
|
|
for await (const y of []) {}
|
|
>y : Symbol(y, Decl(index.ts, 3, 16))
|
|
|