dillon1000/react

Commit

[valueblocks] Disallow AssignmentExpression in value blocks (temporarily)

There's a bug with assignment expression in normal value blocks due to LeaveSSA. 
Until that's resolved i'm temporarily distinguishing "loop" blocks and "value" 
blocks, and disallowing assignment expressions in value blocks specifically.
Browse files
Changed paths7 files
First-parent comparison
M compiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/HIR/MergeConsecutiveBlocks.ts ModifiedM compiler/forget/src/Optimization/ConstantPropagation.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/ternary-assignment-expression.js ModifiedR compiler/forget/src/__tests__/fixtures/hir/ternary-assignment-expression.expect.md →compiler/forget/src/__tests__/fixtures/hir/while-logical.expect.md RenamedA compiler/forget/src/__tests__/fixtures/hir/while-logical.js Added
Patch

Files changed

Rendering syntax-highlighted changes…