Fix nested object spread (#4974)

This commit is contained in:
Henry Zhu
2016-12-08 19:30:50 -05:00
committed by GitHub
parent 608e77e389
commit 88bc28c414
3 changed files with 6 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ export default function ({ types: t }) {
path.traverse({
RestProperty() {
foundRestProperty = true;
path.stop();
}
});
return foundRestProperty;
@@ -14,6 +15,7 @@ export default function ({ types: t }) {
path.traverse({
SpreadProperty() {
foundSpreadProperty = true;
path.stop();
}
});
return foundSpreadProperty;