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

TypedArray.from() error in Safari #285

Closed
ynishiza opened this issue Mar 8, 2017 · 4 comments
Closed

TypedArray.from() error in Safari #285

ynishiza opened this issue Mar 8, 2017 · 4 comments

Comments

@ynishiza
Copy link

ynishiza commented Mar 8, 2017

Hello, thanks for the great library.
As in the title, calling something like
Uint8Array.from([1,2])
raises this error in Safari:
TypeError: TypedArray.from requires its this argument subclass a TypedArray constructor

Safari version: 10.0.3
core-js version: 2.4.1

@arabold
Copy link

arabold commented Apr 5, 2017

I ran into the exact same problem and had to rewrite our code to use new Uint8Array() instead.

@cbush06
Copy link

cbush06 commented Jun 29, 2018

This is still a problem. I am using Babel's polyfill package and am encountering this exact error.

@zloirock
Copy link
Owner

@cbush06 make sure that you use the latest core-js version and in this case, please, create a new issue with a reproducible example.

@cbush06
Copy link

cbush06 commented Jul 1, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants