From 40ecb0938db3c466f4f7857300982c22729d0d1e Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 12 Mar 2021 19:13:29 +0300 Subject: [PATCH] Fix issue with BigInt64Array in Safari --- core/src/main/resources/org/teavm/backend/javascript/runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/org/teavm/backend/javascript/runtime.js b/core/src/main/resources/org/teavm/backend/javascript/runtime.js index e575b993c..2b91e1dd0 100644 --- a/core/src/main/resources/org/teavm/backend/javascript/runtime.js +++ b/core/src/main/resources/org/teavm/backend/javascript/runtime.js @@ -79,7 +79,7 @@ function $rt_createNumericArray(cls, nativeArray) { } var $rt_createLongArray; var $rt_createLongArrayFromData; -if (typeof BigInt !== 'function') { +if (typeof BigInt64Array !== 'function') { $rt_createLongArray = function(sz) { var data = new Array(sz); var arr = new $rt_array($rt_longcls(), data);