Skip to content

fix: remove unused import, duplicate entry, and bad throw#36235

Open
geetexe wants to merge 1 commit intofacebook:mainfrom
geetexe:fix/anonymize-codemod-cleanup
Open

fix: remove unused import, duplicate entry, and bad throw#36235
geetexe wants to merge 1 commit intofacebook:mainfrom
geetexe:fix/anonymize-codemod-cleanup

Conversation

@geetexe
Copy link
Copy Markdown

@geetexe geetexe commented Apr 8, 2026

Summary

Three fixes to scripts/error-codes/anonymize.js:

  • Removed unused JSXText import
  • Removed duplicate 'Function' entry from the Globals Set
  • Fixed: throw error(...) to throw new Error(...) - error was undefined, causing a ReferenceError before the intended message could surface

How did you test this change?

N/A — no logic change, corrections only.

@meta-cla meta-cla bot added the CLA Signed label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant