hotg-ai / rune

Rune provides containers to encapsulate and deploy edgeML pipelines and applications
Apache License 2.0
133 stars 15 forks source link

Added a workaround for Safari and BigUint64Array #411

Closed Michael-F-Bryan closed 2 years ago

Michael-F-Bryan commented 2 years ago

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 https://github.com/zloirock/core-js/issues/381 and the core-js README it isn't possible to polyfill bigint, so this is probably the best we can do.

Fixes #412.