Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Accepted baselines.
  • Loading branch information
DanielRosenwasser authored Apr 29, 2022
commit 4c46f26ab9139ba4a321f9dc5931dfc5385b70ba
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
tests/cases/conformance/node/allowJs/subfolder/index.js(2,11): error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
tests/cases/conformance/node/allowJs/subfolder/index.js(4,5): error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
tests/cases/conformance/node/allowJs/subfolder/index.js(2,11): error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
tests/cases/conformance/node/allowJs/subfolder/index.js(4,5): error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.


==== tests/cases/conformance/node/allowJs/subfolder/index.js (2 errors) ====
// cjs format file
const x = await 1;
~~~~~
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
export {x};
for await (const y of []) {}
~~~~~
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
// esm format file
const x = await 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
tests/cases/conformance/node/allowJs/subfolder/index.js(2,11): error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
tests/cases/conformance/node/allowJs/subfolder/index.js(4,5): error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
tests/cases/conformance/node/allowJs/subfolder/index.js(2,11): error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
tests/cases/conformance/node/allowJs/subfolder/index.js(4,5): error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.


==== tests/cases/conformance/node/allowJs/subfolder/index.js (2 errors) ====
// cjs format file
const x = await 1;
~~~~~
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
export {x};
for await (const y of []) {}
~~~~~
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
// esm format file
const x = await 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
tests/cases/conformance/node/subfolder/index.ts(2,11): error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
tests/cases/conformance/node/subfolder/index.ts(4,5): error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
tests/cases/conformance/node/subfolder/index.ts(2,11): error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
tests/cases/conformance/node/subfolder/index.ts(4,5): error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.


==== tests/cases/conformance/node/subfolder/index.ts (2 errors) ====
// cjs format file
const x = await 1;
~~~~~
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
export {x};
for await (const y of []) {}
~~~~~
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
==== tests/cases/conformance/node/index.ts (0 errors) ====
// esm format file
const x = await 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
tests/cases/conformance/node/subfolder/index.ts(2,11): error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
tests/cases/conformance/node/subfolder/index.ts(4,5): error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
tests/cases/conformance/node/subfolder/index.ts(2,11): error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
tests/cases/conformance/node/subfolder/index.ts(4,5): error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.


==== tests/cases/conformance/node/subfolder/index.ts (2 errors) ====
// cjs format file
const x = await 1;
~~~~~
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
export {x};
for await (const y of []) {}
~~~~~
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' expressions at the top-level.
!!! error TS1309: The current file is a CommonJS module and cannot use 'await' at the top level.
==== tests/cases/conformance/node/index.ts (0 errors) ====
// esm format file
const x = await 1;
Expand Down