dillon1000/react

Commit

Fixture tests for 2 cases of expressions that produce incorrect output

They're fairly related, but I figured it's worth keeping more examples. 

- For the `while` example we need to codegen into a single expression. - For the 
expression with contained assignment we need to either keep the SSA ids around 
or re-create a similar expression during codegen.
Browse files
Changed paths4 files
First-parent comparison
A compiler/forget/src/__tests__/fixtures/hir/_bug_expression-with-assignment.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/_bug_expression-with-assignment.js AddedA compiler/forget/src/__tests__/fixtures/hir/_bug_while-with-assignment.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/_bug_while-with-assignment.js Added
Patch

Files changed

Rendering syntax-highlighted changes…