dillon1000/react

Commit

[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.
Browse files
Changed paths2 files
First-parent comparison
A compiler/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 Added
Patch

Files changed

Rendering syntax-highlighted changes…