Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix block scoped vars shadowing globals
- Loading branch information
1 parent
174b311
commit 8e38136
Showing
6 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...bel-plugin-transform-block-scoping/test/fixtures/general/block-not-shadow-global/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ a; } | ||
{ let a; } | ||
|
||
(function () { | ||
{ b; } | ||
{ let b; } | ||
})(); | ||
|
||
{ c = 0; } | ||
{ let c; } | ||
|
||
(function () { | ||
{ d = 0; } | ||
{ let d; } | ||
}) |
28 changes: 28 additions & 0 deletions
28
...el-plugin-transform-block-scoping/test/fixtures/general/block-not-shadow-global/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
a; | ||
} | ||
{ | ||
var _a; | ||
} | ||
(function () { | ||
{ | ||
b; | ||
} | ||
{ | ||
var _b; | ||
} | ||
})(); | ||
{ | ||
c = 0; | ||
} | ||
{ | ||
var _c; | ||
} | ||
(function () { | ||
{ | ||
d = 0; | ||
} | ||
{ | ||
var _d; | ||
} | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.