-
-
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
Importing es/reflect/set pollutes Object's prototype with {a: 1}
in IE11
#847
Comments
This is also happening with arrays. Not sure if it is happening due to the same code or not but same thing is being seen. new Array().a This causes major issues in the case of arrays because if you try to loop over the array it returns "a" as a key: This ends up breaking most things, including jQuery. This is also an issue in Safari 9. |
So I found more details on my specific issue. We include google charts on our page: https://www.gstatic.com/charts/loader.js If you look at this it appears to do some polyfills for some array functionality. If these polyfills loads before the core-js polyfills then it throws this error. However, if we load core-js first, then it doesn't have the issue. So I am guessing something this is doing is confusing core-js. This wasn't always an issue so I think the google charts must have been updated recently. |
It's a bug in a 3rd party polyfill that does not support |
I'll add a workaround since it's very simple. |
Following piece of code leaves field
a
set to1
in Object's prototype in IE11. This breaksjquery.keyfilter
for instance and also looks strange in dev console.Think it should be cleaned up right after the test with something like
delete Object.prototype.a
The text was updated successfully, but these errors were encountered: