question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Chrome/49 - Cannot redefine property: isConcatSpreadable

See original GitHub issue
  • Browser: Chrome/49.0.2623.112
  • Os: Mac OS X 10.6.8
  • Error: Cannot redefine property: isConcatSpreadable

Error as described in Datadog

TypeError: Cannot redefine property: isConcatSpreadable
  at Function.defineProperty(native) @ undefined
  at <anonymous> @ https://polyfill.io/v3/polyfill.min.js?features=default%2Ces2015%2CNodeList.prototype.forEach%2Cfetch:3:17130
  at <anonymous> @ https://polyfill.io/v3/polyfill.min.js?features=default%2Ces2015%2CNodeList.prototype.forEach%2Cfetch:3:25647

User-Agent as described in Datadog

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

Our polyfill.io url

https://polyfill.io/v3/polyfill.min.js?features=default%2Ces2015%2CNodeList.prototype.forEach%2Cfetch

I tried spoofing the user agent and using only isConcatSpreadable, so polyfill was called for.

URL: https://polyfill.io/v3/polyfill.min.js?features=Symbol.isConcatSpreadable
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

https___polyfill_io_v3_polyfill_min_js_features_Symbol_isConcatSpreadable

I think the correct behavior is that it will not be called if the chrome version is 48 or higher. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable

The config for isConcatSpreadable is chrome = "<48". https://github.com/Financial-Times/polyfill-library/blob/master/polyfills/Symbol/isConcatSpreadable/config.toml#L13

Please confirm the above.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

8reactions
JakeChampioncommented, Dec 15, 2020

I’ll be doing a release today 👍

2reactions
JakeChampioncommented, Dec 15, 2020

Symbol.isConcatSpreadable was changed to serve to Chrome lower than 48 yesterday in polyfill-library.

polyfill.io is not using the latest version of polyfill-library yet, the version it is using does serve Symbol.isConcatSpreadable to Chrome versions lower than 50, which is what you are seeing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] TypeError: Cannot redefine property: webdriver #185
Environment chrome-aws-lambda 5.5.0: puppeteer-core 5.5.0: OS: Mac Node.js Version: 14.x Current Behavior Error: TypeError: Cannot redefine ...
Read more >
What is BetterJsPop error on chrome? - reactjs - Stack Overflow
I am getting this error on Chrome with my React.js app. ... VM1407:20 Uncaught TypeError: Cannot redefine property: BetterJsPop at Function.
Read more >
Origami Newsletter, December 2020 - Financial Times
[Bug] Chrome/49 - Cannot redefine property: isConcatSpreadable ... Allow getters and setters to be set to undefined and not throw an error.
Read more >
Symbol.toStringTag - JavaScript - MDN Web Docs
toStringTag well-known symbol is a string valued property that is used in the creation of the default string description of an object.
Read more >
core-js-compat | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found