-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Codegen variable naming can result in incorrect code #53839
Copy link
Copy link
Closed as not planned
Labels
Resolution: PR SubmittedA pull request with a fix has been provided.A pull request with a fix has been provided.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.Tech: CodegenRelated to react-native-codegenRelated to react-native-codegenType: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
Activity
Metadata
Metadata
Assignees
Labels
Resolution: PR SubmittedA pull request with a fix has been provided.A pull request with a fix has been provided.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.Tech: CodegenRelated to react-native-codegenRelated to react-native-codegenType: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
codegen generates such a code not the
payloadvariable gets shadowed. And the bug is in the line:payload.setProperty(runtime, "payload", payload);See
https://github.com/mfazekas/codegen-variable-naming-bug
Steps to reproduce
React Native Version
0.81.4
Affected Platforms
Other (please specify)
Areas
Codegen
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
https://github.com/mfazekas/codegen-variable-naming-bug
Screenshots and Videos
No response