dillon1000/react
Commit
Browse files 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.
Changed paths6 files
First-parent comparisoncompiler/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…