dillon1000/react
Commit
Browse files [hir] Treat captured refs in throw or return terminals as mutations
In a lambda, a return/throw terminal could return a captured context ref needs to be treated as a mutation to correctly alias the returned context ref and the lvalue.
Changed paths3 files
First-parent comparisoncompiler/forget/src/Inference/InferReferenceEffects.ts ModifiedR compiler/forget/src/__tests__/fixtures/compiler/_bug.lambda-capture-returned-alias.expect.md →compiler/forget/src/__tests__/fixtures/compiler/lambda-capture-returned-alias.expect.md RenamedR compiler/forget/src/__tests__/fixtures/compiler/_bug.lambda-capture-returned-alias.js →compiler/forget/src/__tests__/fixtures/compiler/lambda-capture-returned-alias.js RenamedPatch
Files changed
Rendering syntax-highlighted changes…