You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an issue with a couple of versions of chromium (list below) browser's Map implementation. I can't reproduce the error on browserstack with an identical useragent, so I don't trust the userAgent in my logs. But I can tell from splunk logging that it's failing for them at this line:
With this message: TypeError: Cannot modify readonly property: constructor.
My question is, what do you think about removing the "use strict" from any file which overwrites a constructor? IE11 doesn't care either way, and since isForced defaults to true core-js will inevitably see more cases like this one where it tries and fails to overwrite.
Reproduce the error by running this code (taken from the file above) in chrome or most modern browsers:
User Agents which log the error (again, I can't reproduce it but in case someone else is seeing the same thing):
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
Please let me know your thoughts. Thank you so much for maintaining this repo. It makes using babel an amazing experience for those of us who still need to support IE11.
The text was updated successfully, but these errors were encountered:
In core-js, Constructor is just a new function and have { writable: true }prototype descriptor, but in your code, it's Map and descriptor is { writable: false }, so your example should throw an error anyway, but with another error message:
I checked this case in mentioned browsers - and they work properly, Map.prototype.constructor has { configurable: true, writable: true } descriptor and redefinition of this property can't throw an error.
This issue looks like a conflict with another, incorrect, polyfill, which set Map.prototype.constructor as non-writable like #746 or #702.
If you could add a reproducible example - please, add it here.
There's an issue with a couple of versions of chromium (list below) browser's Map implementation. I can't reproduce the error on browserstack with an identical useragent, so I don't trust the userAgent in my logs. But I can tell from splunk logging that it's failing for them at this line:
core-js/packages/core-js/internals/collection.js
Line 76 in 09529a1
With this message:
TypeError: Cannot modify readonly property: constructor.
My question is, what do you think about removing the "use strict" from any file which overwrites a constructor? IE11 doesn't care either way, and since isForced defaults to true core-js will inevitably see more cases like this one where it tries and fails to overwrite.
Reproduce the error by running this code (taken from the file above) in chrome or most modern browsers:
User Agents which log the error (again, I can't reproduce it but in case someone else is seeing the same thing):
Please let me know your thoughts. Thank you so much for maintaining this repo. It makes using babel an amazing experience for those of us who still need to support IE11.
The text was updated successfully, but these errors were encountered: