diff --git a/test/cases/import-for-in-scope/input.js b/test/cases/import-for-in-scope/input.js new file mode 100644 index 0000000..ed90565 --- /dev/null +++ b/test/cases/import-for-in-scope/input.js @@ -0,0 +1,3 @@ +import {bar} from "foo"; +console.log(bar); +for (const bar in Object); diff --git a/test/cases/import-for-in-scope/output.js b/test/cases/import-for-in-scope/output.js new file mode 100644 index 0000000..db85802 --- /dev/null +++ b/test/cases/import-for-in-scope/output.js @@ -0,0 +1,5 @@ +(function () { + +console.log(foo.bar); +for (const bar in Object); +})(); diff --git a/test/cases/import-for-of-scope/input.js b/test/cases/import-for-of-scope/input.js new file mode 100644 index 0000000..f2bfde3 --- /dev/null +++ b/test/cases/import-for-of-scope/input.js @@ -0,0 +1,3 @@ +import {bar} from "foo"; +console.log(bar); +for (const bar of []); diff --git a/test/cases/import-for-of-scope/output.js b/test/cases/import-for-of-scope/output.js new file mode 100644 index 0000000..f9a016c --- /dev/null +++ b/test/cases/import-for-of-scope/output.js @@ -0,0 +1,5 @@ +(function () { + +console.log(foo.bar); +for (const bar of []); +})(); diff --git a/test/cases/import-for-scope/input.js b/test/cases/import-for-scope/input.js index b50889c..038cd4c 100644 --- a/test/cases/import-for-scope/input.js +++ b/test/cases/import-for-scope/input.js @@ -1,4 +1,3 @@ import {bar} from "foo"; console.log(bar); -for (const bar of []); -for (const bar in Object); +for (let bar = 0; bar < 1; bar++); diff --git a/test/cases/import-for-scope/output.js b/test/cases/import-for-scope/output.js index 9a526e7..420f7b7 100644 --- a/test/cases/import-for-scope/output.js +++ b/test/cases/import-for-scope/output.js @@ -1,6 +1,5 @@ (function () { console.log(foo.bar); -for (const bar of []); -for (const bar in Object); +for (let bar = 0; bar < 1; bar++); })();