Skip to content
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

Intl-NumberFormat : TypeError on old browsers (introduced in 6.1.6) #2724

Closed
Donov4n opened this issue Mar 18, 2021 · 0 comments
Closed

Intl-NumberFormat : TypeError on old browsers (introduced in 6.1.6) #2724

Donov4n opened this issue Mar 18, 2021 · 0 comments
Labels

Comments

@Donov4n
Copy link

Donov4n commented Mar 18, 2021

Which package?

https://github.com/formatjs/formatjs/tree/main/packages/intl-numberformat

Describe the bug

In intl-numberformat version 6.1.6 a "breaking change" has been introduced for old browsers that does not support overwriting the name property on functions.

The following error is thrown since v6.1.6 : Uncaught TypeError: Cannot redefine property: name.

The bug seems to be identifical to the one referenced in this issue in another polyfill repo..

To Reproduce

Steps to reproduce the behavior:

  1. Import the intl-numberformat polyfill
  2. Open a page with an old browser, f.e. Chrome 31
  3. See error in console.

Expected behavior

Like in version prior to 6.1.6, the polyfill should be usable on old browsers.

Desktop (please complete the following information):

  • OS: Ubuntu 14.04
  • Browser Chrome
  • Version 31
@Donov4n Donov4n added the bug label Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant