-
-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(transformer/class-properties): use
temp_var_name_base
to g…
…enerate temp var names for `super` transform (#8004) Follow-on after #7997. Generate "base name" for temp var using `temp_var_name_base` and then create the 2 temp bindings from it. This is a bit more efficient than creating 2nd temp binding from name of the first temp binding, because the first binding's name has `_` added to start, and may have digits on the end, which have to be trimmed off again. Whereas the "base name" is ready to go. Incidentally, changing the timing of when temp bindings are created also aligns output with Babel.
- Loading branch information
1 parent
63a95e4
commit 0a38eea
Showing
2 changed files
with
25 additions
and
13 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
2 changes: 1 addition & 1 deletion
2
...-plugin-transform-class-properties/test/fixtures/static-super-update-expression/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