dillon1000/react
Commit
Browse files Repro for incorrect memoization of iife
We construct invalid mutable ranges in these cases because the range starts within a labeled block. We need to run merge consecutive scopes and EnterSSA after inlining so that the code is lifted out of the labeled block to the correct scope, and so that we create phis for reassignments within the IIFE.
Changed paths4 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/bug.iife-return-modified-later-phi.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/bug.iife-return-modified-later-phi.js AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/bug.iife-return-modified-later.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/bug.iife-return-modified-later.js AddedPatch
Files changed
Rendering syntax-highlighted changes…