Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion core/src/main/js/wasm-gc-runtime/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,11 @@ async function compileModule(src, isNodeJs) {
}

function hasStringBuiltins() {
// Ensure Safari fallback for string builtins
if (/.*version\/(\d+\.\d+).*/.exec(navigator.userAgent.toLowerCase()) !== null) {
if (parseFloat(RegExp.$1) < 28) return null;
}

if (stringBuiltinsCache === null) {
/*
(module
Expand Down Expand Up @@ -931,4 +936,4 @@ async function fetchExternalDebugInfo(path, debugInfoLocation, options, isNodeJs
}

return new Int8Array(buffer);
}
}
Loading