29 lines
432 B
Plaintext
29 lines
432 B
Plaintext
|
=== 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[]
|
||
|
|