dillon1000/react

Commit

Generalize helper for reorderable expressions

Adds a new helper method that we can use when processing expressions whose 
evaluation ordering may not be preserved. This was previously the case only for 
switch test case values, but we can use this for AssignmentPattern 
(destructuring default values) as well.
Browse files
Changed paths6 files
First-parent comparison
M compiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/__tests__/fixtures/compiler/destructuring-array-default.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/destructuring-array-default.js ModifiedM compiler/forget/src/__tests__/fixtures/compiler/destructuring-assignment-array-default.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/destructuring-assignment-array-default.js ModifiedM compiler/forget/src/__tests__/fixtures/compiler/error.todo-kitchensink.expect.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…