TypeScript/tests/baselines/reference/nodeModulesAllowJsTopLevelAwait(module=nodenext).types

29 lines
432 B
Plaintext
Raw Normal View History

=== tests/cases/conformance/node/allowJs/subfolder/index.js ===
// cjs format file
const x = await 1;
>x : 1
>await 1 : 1
>1 : 1
export {x};
>x : 1
for await (const y of []) {}
>y : any
>[] : undefined[]
=== tests/cases/conformance/node/allowJs/index.js ===
// esm format file
const x = await 1;
>x : 1
>await 1 : 1
>1 : 1
export {x};
>x : 1
for await (const y of []) {}
>y : any
>[] : undefined[]