Skip to content

Commit

Permalink
Ensure class decorators can access decorated non-static members (#15332)
Browse files Browse the repository at this point in the history
* copy applyDecs2203 to applyDecs2203R

* Introduce applyDecs2203R

* update test fixtures

* make node < 16.11 happy

* Update packages/babel-helpers/src/helpers/applyDecs2203.js

* wrap applyDecs2203 impl into a factory

* Update packages/babel-plugin-proposal-decorators/src/transformer-2022-03.ts

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
JLHwung and nicolo-ribaudo committed Jan 18, 2023
1 parent f9fbc25 commit 0f68471
Show file tree
Hide file tree
Showing 110 changed files with 1,465 additions and 543 deletions.
6 changes: 5 additions & 1 deletion packages/babel-helpers/src/helpers-generated.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers/applyDecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* NOTE: This is an old version of the helper, used for 2021-12 decorators.
* Updates should be done in applyDecs2203.js.
* Updates should be done in applyDecs2203R.js.
*/

/**
Expand Down
Loading

0 comments on commit 0f68471

Please sign in to comment.