Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect property ordering with obj rest spread on nested
- Loading branch information
1 parent
7ca8170
commit 8b55a58
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ages/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest/nested/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const defunct = { | ||
outer: { | ||
inner: { | ||
three: 'three', | ||
four: 'four' | ||
} | ||
} | ||
} | ||
|
||
const { outer: { inner: { three, ...other } } } = defunct |
11 changes: 11 additions & 0 deletions
11
...es/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest/nested/expected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const defunct = { | ||
outer: { | ||
inner: { | ||
three: 'three', | ||
four: 'four' | ||
} | ||
} | ||
}; | ||
|
||
const { outer: { inner: { three } } } = defunct, | ||
other = babelHelpers.objectWithoutProperties(defunct.outer.inner, ['three']); |