-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer/class-properties): transform private property accesse…
…s in static prop initializers (#7483) Transform private property accesses in static prop initializers. e.g.: Input: ```js class C { static #x = 123; static y = this.#x; } ``` Transformed: ```js class C {} var _x = { _: 123 }; babelHelpers.defineProperty(C, "y", babelHelpers.assertClassBrand(C, C, _x)._); ``` `this.#x` has been transformed to `babelHelpers.assertClassBrand(C, C, _x)._`.
- Loading branch information
1 parent
5ca6eea
commit 199076b
Showing
3 changed files
with
452 additions
and
173 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
Oops, something went wrong.