Skip to content

Commit

Permalink
Test: for scope issue?
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Aug 19, 2020
1 parent 2a16b5e commit e6a7372
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/cases/import-for-in-scope/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {bar} from "foo";
console.log(bar);
for (const bar in Object);
5 changes: 5 additions & 0 deletions test/cases/import-for-in-scope/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(function () {

console.log(foo.bar);
for (const bar in Object);
})();
3 changes: 3 additions & 0 deletions test/cases/import-for-of-scope/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {bar} from "foo";
console.log(bar);
for (const bar of []);
5 changes: 5 additions & 0 deletions test/cases/import-for-of-scope/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(function () {

console.log(foo.bar);
for (const bar of []);
})();
3 changes: 3 additions & 0 deletions test/cases/import-for-scope/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {bar} from "foo";
console.log(bar);
for (let bar = 0; bar < 1; bar++);
5 changes: 5 additions & 0 deletions test/cases/import-for-scope/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(function () {

console.log(foo.bar);
for (let bar = 0; bar < 1; bar++);
})();

0 comments on commit e6a7372

Please sign in to comment.