-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Iterator cannot be polyfilled in Safari (up to 18) #1390
Comments
|
Actually, I just double checked and |
In this case, please, add a reproducible example. |
And I just checked versions and I'm using And yes I'll get a minimal reproducible example for you later today. Thank you so much for your help and all of the work you do! |
|
Repro is here: https://github.com/CreativeTechGuy/core-js-safari-iterator-repro Let me know if there's anything else I can do to make this easier. I tried to use the very least amount of config/code/dependencies to make it super straight forward. |
@CreativeTechGuy your example contains |
Thank you! It's always frustrating when a new version that fixes a problem is released but not yet consumed where it's used. I'll go ask for it. |
When using a polyfill which depends on
Iterator
such asAs of Safari 18, it doesn't support most of the Iterator protocol. But the polyfill attempts to augment the
globalThis["Iterator"]
prototype, which doesn't exist in Safari (despite the compat chart saying it should). So the polyfill despite being loaded doesn't initialize and no-op.I don't know if there is any way that this can be fixed in core-js so that these Iterator polyfills work in Safari. At the very least I hope this issue will help others not run into this.
The text was updated successfully, but these errors were encountered: