mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f77185f27e
Summary: These are caused by new [syntax checking](https://github.com/babel/babylon/blob/1285131e3eb28ab6f5f62a7c5fd3ffd7ce1e5eb8/CHANGELOG.md#v6113-2016-10-01) introduced by babylon. "The single rest at the end only applies to binding `let { x, ...y } = obj;` and assignment `({ x, ...y } = obj).`" I'd say this really should be cherry picked into the stable branch. **Test plan** 1. install babylon@6.11.3 2. see that things break 3. apply patch 4. things work 5. make sure all instances were fixed (I used `\.\.\..*,.*\n.*=` in IntelliJ regex format—find all ... followed by newline followed by =) Issue #10199 Closes https://github.com/facebook/react-native/pull/10200 Differential Revision: D3974066 Pulled By: javache fbshipit-source-id: 3f3c1e9df01a3b3bdd61dd3863416c638d3ed98d