Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: PrivateName Identifier should not be isReferenced. (#9861)
- Loading branch information
1 parent
66be4aa
commit 8ca99b9
Showing
5 changed files
with
62 additions
and
6 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
14 changes: 14 additions & 0 deletions
14
...l-plugin-transform-modules-commonjs/test/fixtures/class-properties/live-rewrite/input.mjs
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,14 @@ | ||
import {test1, test2, test3, test4, test5, test6, test7, test8, test9} from 'anywhere'; | ||
|
||
class Example { | ||
#test1 = test1; | ||
test2 = test2; | ||
#test3() { return test3; } | ||
test4() { return test4; } | ||
get #test5() { return test5; } | ||
get test6() { return test6; } | ||
|
||
#test7 = this.#test1; | ||
#test8() { return this.#test3(); } | ||
get #test9() { return this.#test5(); } | ||
} |
35 changes: 35 additions & 0 deletions
35
...l-plugin-transform-modules-commonjs/test/fixtures/class-properties/live-rewrite/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,35 @@ | ||
"use strict"; | ||
|
||
var _anywhere = require("anywhere"); | ||
|
||
class Example { | ||
#test1 = _anywhere.test1; | ||
test2 = _anywhere.test2; | ||
|
||
#test3() { | ||
return _anywhere.test3; | ||
} | ||
|
||
test4() { | ||
return _anywhere.test4; | ||
} | ||
|
||
get #test5() { | ||
return _anywhere.test5; | ||
} | ||
|
||
get test6() { | ||
return _anywhere.test6; | ||
} | ||
|
||
#test7 = this.#test1; | ||
|
||
#test8() { | ||
return this.#test3(); | ||
} | ||
|
||
get #test9() { | ||
return this.#test5(); | ||
} | ||
|
||
} |
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