@samitouri / QOS-React / commits / 8b31835fc0

[compiler] Replace `for...in` with `for...of` for array of strings (#30631)

closes https://github.com/facebook/react/issues/30627 Thanks!

Sol Lee committed Aug 8, 2024 at 14:07 UTC 8b31835fc0a4de479a816471764f0e1d103ae205
1 file changed +1 -1
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts
+1 -1
@@ -263,7 +263,7 @@ function isFilePartOfSources(
263 return sources(filename);
264 }
265
266 - for (const prefix in sources) {
266 + for (const prefix of sources) {
267 if (filename.indexOf(prefix) !== -1) {
268 return true;
269 }