-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[Android] es6 Polyfills #4841
![:octocat: :octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png)
Comments
Hey Thomas101, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
+1 |
cc @skevy also |
This probably happens because we use an older version of JSC on android. There's probably a bad or missing polyfill for Map/Set/Iterator |
+1, any updates on this?
|
@bsy Feel free to send a PR if this is important to you. |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/android-es6-polyfills Product Pains has been very useful in highlighting the top bugs and feature requests: Also, if this issue is a bug, please consider sending a pull request with a fix. |
@Thomas101 did you found someway to workaround this issue? I'm having the same problem with TypedArrays, works perfectly on iOS, but not on Android.
|
@eduardojunio never got around to fixing it to be honest. Due to time constraints we just avoided using the affected methods. e.g. const set = new Set()
const arr = [1,2,3]
arr.forEach((v) => set.add(v)) rather than |
@Thomas101 I managed to workaround this by including |
i was able to replicate. reopening but feel free to send a PR |
@eduardojunio I couldn't fix it by adding |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
oh wise stale bot, I petition this issue being re-opened, as it is still occurring for me on react-native 0.53-rc.1 with react 16.2.0. Also worth noting this issue is not solved by using core-js (I'm on version 2.5.3), as per this ticket of theirs zloirock/core-js#368 |
Yes, this issue is still on - shouldn't have been closed. @chrisnojima described the source of this problem really well in zloirock/core-js#368 (comment) (seems to be a problem with babel/core-js). What's worth mentioning: it doesn't happen during remote debugging. Just a note from my experience with this bug: In my app it's caused when using One more interesting observation, that may be connected to this issue, is that I get the following warnings only when not remote debugging:
I don't know about it, but seems a bit like other versions of packages where used during remote debugging then during non-remote debugging... |
![:octocat: :octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png)
Hey,
I've found a few es6 polyfils which behave differently to how they should on android. They work fine on iOS and work fine when you run on android with debug enabled.
Tom
The text was updated successfully, but these errors were encountered: