-
Notifications
You must be signed in to change notification settings - Fork 24.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destructuring object with rest operator failed when using Number keys #18273
Comments
Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest stable release? Thank you for your contributions. |
- Currently there is a bug with React Native where the rest operator does not work when destructuring with an integer key. - Casting to a string is a temporary fix. - facebook/react-native#18273
I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while. If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here. |
Demo: https://snack.expo.io/@riwu/destructuring-number-key
Works as intended on Chrome browser, but gave the same output as above when using Chrome debugging, which supposedly uses the same V8 engine as Chrome browser?
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 9.6.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz => 0.52.0
The text was updated successfully, but these errors were encountered: