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);