dillon1000/react

Commit

[ssa] Fix lookup of global values

Currently, HIR doesn't load global idenfifiers into a temporary Place which 
means our SSA transform breaks when it tries to lookup this global identifier. 

Instead of throwing, let's log and return the old place. This works for now but 
will probably break when we start mutating globals, but at that point our HIR 
builder will need fixes.
Browse files
Changed paths5 files
First-parent comparison
M compiler/forget/src/HIR/SSAify.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/ssa-call-jsx.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/ssa-call-jsx.js AddedA compiler/forget/src/__tests__/fixtures/hir/ssa-newexpression.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/ssa-newexpression.js Added
Patch

Files changed

Rendering syntax-highlighted changes…