dillon1000/react
Commit
Browse files Capturing a frozen value is a Read
If a value is known to be frozen (or potentially frozen), then it doesn't need to be considered 'captured' since no mutation can occur via aliasing.
Changed paths5 files
First-parent comparisoncompiler/forget/src/Inference/InferReferenceEffects.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/same-variable-as-dep-and-redeclare-maybe-frozen.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/same-variable-as-dep-and-redeclare-maybe-frozen.js AddedA compiler/forget/src/__tests__/fixtures/hir/same-variable-as-dep-and-redeclare.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/same-variable-as-dep-and-redeclare.js AddedPatch
Files changed
Rendering syntax-highlighted changes…