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

Added a workaround for Safari and BigUint64Array #411

Merged
merged 3 commits into from
Feb 8, 2022

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented Feb 8, 2022

The release notes for Safari version 121 say that BigUint64Array and BigInt64Array are supported (caniuse says it was released in October 2021), but in practice we've found Safari browsers where they aren't defined.

To avoid a ReferenceError on these browsers we can use a shim class which will throw an exception whenever you try to construct these unsupported types. According to zloirock/core-js#381 and the core-js README it isn't possible to polyfill bigint, so this is probably the best we can do.

Fixes #412.

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

Successfully merging this pull request may close these issues.

BigUint64Array is not supported on some versions of Safari
1 participant