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.
The release notes for Safari version 121 say that
BigUint64Array
andBigInt64Array
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 thecore-js
README it isn't possible to polyfill bigint, so this is probably the best we can do.Fixes #412.