Files
tsgo/testdata/baselines/reference/submodule/conformance/nodeModulesTopLevelAwait(module=node20).symbols

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))