dillon1000/react
Commit
Browse files [hir] Add test case for incorrect memoisation of mutated objects
In this case, x should not be cached within the if or else blocks as it is mutated later.
Changed paths2 files
First-parent comparisoncompiler/forget/src/__tests__/fixtures/hir/obj-mutated-after-if-else.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/obj-mutated-after-if-else.js AddedPatch
Files changed
Rendering syntax-highlighted changes…