dillon1000/react

Commit

[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.
Browse files
Changed paths3 files
First-parent comparison
M compiler/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 Renamed
Patch

Files changed

Rendering syntax-highlighted changes…