-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer): exponentiation transform: fix temp var names (#6329)
Fix one case that I missed in #6318.
- Loading branch information
1 parent
c7636d7
commit 28cbfa7
Showing
6 changed files
with
89 additions
and
91 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
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
4 changes: 3 additions & 1 deletion
4
...abel-plugin-transform-exponentiation-operator/test/fixtures/assign-to-identifier/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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
let x, fn; | ||
let x, fn, ___bound; | ||
x **= 2; | ||
y **= 3; | ||
z **= fn(); | ||
q **= unboundFn(); | ||
___bound **= 4; | ||
___unbound **= 5; |
6 changes: 4 additions & 2 deletions
6
...bel-plugin-transform-exponentiation-operator/test/fixtures/assign-to-identifier/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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
var _y, _z, _q; | ||
let x, fn; | ||
var _y, _z, _q, _unbound; | ||
let x, fn, ___bound; | ||
x = Math.pow(x, 2); | ||
_y = y, y = Math.pow(_y, 3); | ||
_z = z, z = Math.pow(_z, fn()); | ||
_q = q, q = Math.pow(_q, unboundFn()); | ||
___bound = Math.pow(___bound, 4); | ||
_unbound = ___unbound, ___unbound = Math.pow(_unbound, 5) |
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
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