fix(transformer/arrow-functions): should not transform this in class (#3129)

This commit is contained in:
Dunqing 2024-04-29 21:44:10 +08:00 committed by GitHub
parent f1ccbd4856
commit b5894964d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -210,7 +210,7 @@ impl<'a> ArrowFunctions<'a> {
} }
pub fn transform_class(&mut self, _class: &mut Class<'a>) { pub fn transform_class(&mut self, _class: &mut Class<'a>) {
self.stacks.push(true); self.stacks.push(false);
} }
pub fn transform_class_on_exit(&mut self, _class: &mut Class<'a>) { pub fn transform_class_on_exit(&mut self, _class: &mut Class<'a>) {

View file

@ -1,4 +1,4 @@
Passed: 291/364 Passed: 293/364
# All Passed: # All Passed:
* babel-plugin-transform-react-jsx-source * babel-plugin-transform-react-jsx-source
@ -66,11 +66,9 @@ Passed: 291/364
# babel-preset-react (8/9) # babel-preset-react (8/9)
* preset-options/development-runtime-automatic/input.js * preset-options/development-runtime-automatic/input.js
# babel-plugin-transform-react-jsx (139/143) # babel-plugin-transform-react-jsx (141/143)
* autoImport/complicated-scope-module/input.js * autoImport/complicated-scope-module/input.js
* react/weird-symbols/input.js
* react-automatic/should-throw-when-filter-is-specified/input.js * react-automatic/should-throw-when-filter-is-specified/input.js
* react-automatic/weird-symbols/input.js
# babel-plugin-transform-react-display-name (15/16) # babel-plugin-transform-react-display-name (15/16)
* display-name/nested/input.js * display-name/nested/input.js