Skip to content

Commit

Permalink
add generator test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 12, 2021
1 parent 64daee3 commit 9aba539
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class C {
#x;
m() {
#x in (#x in this);
var { #x: x } = this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["destructuringPrivate"]
}
11 changes: 11 additions & 0 deletions packages/babel-generator/test/fixtures/types/PrivateName/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class C {
#x;

m() {
#x in (#x in this);
var {
#x: x
} = this;
}

}

0 comments on commit 9aba539

Please sign in to comment.