Skip to content

gh-128627: Skip wasm-gc on iOS Safari where it's broken #130418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 23, 2025
Merged
Changes from 1 commit
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
Next Next commit
gh-128627: Skip wasm-gc on iOS Safari where it's broken
As of iOS 18.3.1, enabling wasm-gc is making the interpreter fail to load.
Downstream pyodide issue: pyodide/pyodide#5428.

macOS Safari 18.3 does not surface the issue.

Confirmed on device that disabling this restores interpreter function.
  • Loading branch information
ambv committed Feb 21, 2025
commit 0da9a0ce608e5b009b2fa7991bd9d77db0734e9b
4 changes: 4 additions & 0 deletions Python/emscripten_trampoline.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ EM_JS(CountArgsFunc, _PyEM_GetCountArgsPtr, (), {
// )
// )
addOnPreRun(() => {
let isIOS = /iPad|iPhone|iPod/.test(navigator.platform);
if (isIOS) {
return;
}
// Try to initialize countArgsFunc
const code = new Uint8Array([
0x00, 0x61, 0x73, 0x6d, // \0asm magic number
Expand Down
Loading