Fix issue with BigInt64Array in Safari

This commit is contained in:
Alexey Andreev 2021-03-12 19:13:29 +03:00
parent 4f9346e4e3
commit 40ecb0938d

View File

@ -79,7 +79,7 @@ function $rt_createNumericArray(cls, nativeArray) {
} }
var $rt_createLongArray; var $rt_createLongArray;
var $rt_createLongArrayFromData; var $rt_createLongArrayFromData;
if (typeof BigInt !== 'function') { if (typeof BigInt64Array !== 'function') {
$rt_createLongArray = function(sz) { $rt_createLongArray = function(sz) {
var data = new Array(sz); var data = new Array(sz);
var arr = new $rt_array($rt_longcls(), data); var arr = new $rt_array($rt_longcls(), data);