Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: @putout/printer: ObjectProperty inside ObjectPattern after path.…
…scope.rename() (babel/babel#15648)
- Loading branch information
1 parent
a67bc3a
commit e494ffb
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
lib/tokenize/expressions/fixture/object-pattern-wrong-shorthand-fix.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,2 @@ | ||
const {a: zzz} = b; | ||
console.log(zzz); |
2 changes: 2 additions & 0 deletions
2
lib/tokenize/expressions/fixture/object-pattern-wrong-shorthand.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,2 @@ | ||
const {a} = b; | ||
console.log(a); |
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